ueditor七牛云储存 后端配置项没有正常加载,上传插件不能正常使用!解决方法。附帝国CMS、织梦CMS安装方法
at 10个月前 ca 记录笔记 by authorhu
解决‘后端配置项没有正常加载,上传插件不能正常使用’的方法:php/config.json 不能出现//注释符。
//UEditor1.4.3版本-直接上传视频、附件、图片到七牛云存储,并且支持图片在线管理功能
https://github.com/widuu/qiniu_ueditor_1.4.3
帝国cms整合UE七牛方法:
.....有空再写
DEDE整合:
UE修改参数:
/include/ueditor/php/config.json
/include/ueditor/php/config.php
系统修改:
/include/inc/inc_fun_funAdmin.php 184行下加上
else if($GLOBALS['cfg_html_editor']=='ueditor') { $fvalue = $fvalue=='' ? '' : $fvalue; $code = '<script type="text/javascript" charset="utf-8" src="'.$GLOBALS['cfg_cmspath'].'/include/ueditor/ueditor.config.js"></script>'; $code .='<script type="text/javascript" charset="utf-8" src="'.$GLOBALS['cfg_cmspath'].'/include/ueditor/ueditor.all.js"></script>'; $code .='<script type="text/javascript" charset="utf-8" src="'.$GLOBALS['cfg_cmspath'].'/include/ueditor/lang/zh-cn/zh-cn.js"></script>'; $code .='<link rel="stylesheet" type="text/css" href="'.$GLOBALS['cfg_cmspath'].'/include/ueditor/themes/default/css/ueditor.css"/>'; $code .= '<script type="text/plain" name="'.$fname.'" id="'.$fname.'">'.$fvalue.'</script>'; if($bbcode){ $code .= '<script type="text/javascript">UE.getEditor("'.$fname.'",{toolbars:[["Source","|","bold", "italic", "underline","|","fontsize","forecolor","emotion","Undo", "Redo"]],initialFrameHeight:100});</script>'; }else{ $code .= ' <script type="text/javascript">UE.getEditor("'.$fname.'",{initialFrameHeight:450});</script>'; }if($gtype=="print"){ echo $code; }else{ return $code; } }
/dede/templets/article_edit.htm
<td><input name="remote" type="checkbox" class="np" id="remote" value="1" checked="1" /> 下载远程图片和资源
修改为
<td><input name="remote" type="checkbox" class="np" id="remote" value="1" <?php if($cfg_rm_remote=='Y') echo ' checked="1" '; ?>/> 下载远程图片和资源
后台 -> 系统 -> 系统基本参数 -> 核心设置 -> 其他选项 ->远程图片本地化 ,勾选“否”
版权声明
本文仅代表作者观点,未经许可,不得转载。