PHP群:95885625 Hbuilder+MUI群:81989597 站长QQ:634381967
    您现在的位置: 首页 > 开发编程 > ThinkPhp教程 > 正文

    Thinkphp加入Ueditor后不能上传图片

    作者:w634381967来源:网络浏览:时间:2020-09-30 00:07:50我要评论
    导读:Thinkphp加入Ueditor后不能上传图片,错误提示: 选择保存目录:正在读取目录.
    错误提示: 选择保存目录:正在读取目录.
    解决方法.看下面的注释

     
    复制代码 代码如下:
    <script type="text/javascript">
    window.UEDITOR_HOME_URL = '__ROOT__/Data/ueditor/';
    window.onload = function(){
    window.UEDITOR_CONFIG.initialFrameHeight =500;
    window.UEDITOR_CONFIG.initialFrameWidth =1100;
    window.UEDITOR_CONFIG.savePath = ['Uploads']; //添加这一行就不会出错了
    window.UEDITOR_CONFIG.imageUrl = "{:U(GROUP_NAME . '/Blog/upload')}";
    window.UEDITOR_CONFIG.imagePath = '__ROOT__/Uploads/';
    UE.getEditor('content');
    }
    </script>

    转载请注明(B5教程网)原文链接:https://b5.mxunkeji.com/content-83-1100-1.html
    相关热词搜索: