This action will force synchronization from 子弹兄/Ueditor-thinkphp, which will overwrite any changes that you have made since you forked the repository, and can not be recovered!!!
Synchronous operation will process in the background and will refresh the page when finishing processing. Please be patient.
Ueditor for thinkphp插件 兼容本地与sae平台 暂只支持thinkphp3.2后的版本
会与TP的trace调试冲突,关闭trace后正常
安装:
将Ueditor 目录下 Public,Thinkphp 文件夹与你的项目目录下的Public , Thinkphp文件夹合并,ueditor.json放置在你项目的配置文件夹
使用:
public function ueditor(){
$data = new \Org\Util\Ueditor();
echo $data->output();
}
<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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。