5 Star 21 Fork 5

子弹兄 / Ueditor-thinkphp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
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

空文件

简介

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

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
PHP
1
https://gitee.com/hongweizhiyuan/Ueditor-thinkphp.git
git@gitee.com:hongweizhiyuan/Ueditor-thinkphp.git
hongweizhiyuan
Ueditor-thinkphp
Ueditor-thinkphp
master

搜索帮助