0 Star 0 Fork 5

龙人 / Ueditor-thinkphp

forked from 子弹兄 / Ueditor-thinkphp 
Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
contribute
Sync branch
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README

<<<<<<< HEAD Ueditor-thinkphp

Ueditor for thinkphp插件 兼容本地与sae平台 暂只支持thinkphp3.2后的版本

注意

会与TP的trace调试冲突,关闭trace后正常

使用说明

安装:

将Ueditor 目录下 Public,Thinkphp 文件夹与你的项目目录下的Public , Thinkphp文件夹合并,ueditor.json放置在你项目的配置文件夹

使用:

  • 给你的控制器添加ueditor方法
public function ueditor(){
    	$data = new \Org\Util\Ueditor();
		echo $data->output();
    }
  • 添加以下代码到你视图的view文件
    <js href="__PUBLIC__/js/jquery-2.0.2.js" />
    <js href="__PUBLIC__/ueditor/ueditor.config.js" />    
    <js href="__PUBLIC__/ueditor/ueditor.all.min.js" />
    <script>
    $(function(){
        var ue = UE.getEditor('container',{
            serverUrl :'{:U('模块/控制器/ueditor')}'
        });
    })
    </script>

上传的话本地最后会默认上传到项目目录下Uploads文件夹,sae平台会上传到名字为uploads的domain,如果想更改可通过配置Org\Util\Ueditor下的rootpath变量实现,上传子目录的更改可通过配置ueditor.json实现

======= #Ueditor-thinkphp

3ef6e2a8d5cbd19b6d5bd7da94f1a4e7754bbdd3

Empty file

About

thinkphp的ueditor插件,支持thinkphp3.2,上传写入文件兼容sae平台(自动检测无需手动切换),保存目录可以自己配置 expand collapse
Cancel

Releases

No release

Contributors

All

Activities

Load More
can not load any more
PHP
1
https://gitee.com/long_ren/Ueditor-thinkphp.git
git@gitee.com:long_ren/Ueditor-thinkphp.git
long_ren
Ueditor-thinkphp
Ueditor-thinkphp
master

Search