admin

帝国CMS7.5整合ueditor 1.4.3百度编辑器教程(修改版本)

admin 网站技能 2020-02-22 浏览
很多人不喜欢使用帝国CMS自带的后台文章发布编辑器,因为功能太少且很多地方有问题,最近大家升级帝国CMS7.5之后,又开始纷纷求助如何整合百度编辑器1.4.3版本,正好电脑我帮您小编也有强迫症,将帝国CMS7.5整合了ueditor 1.4.3百度编辑器 UTF-8版本,下面将教程和自己修改优化过的百度编辑器ueditor 1.4.3分享给大家!mW4龙写年华
方法步骤:mW4龙写年华
帝国cms7.5整合Ueditor1.4.3编辑器优化版使用说明:mW4龙写年华
1、请直接解压e目录的覆盖网站根目录下的e目录文件mW4龙写年华
备注:如果修改过后台默认admin目录的自行替换对应的文件。mW4龙写年华
2、编辑器后台使用的图片上传路径…等默认为相对路径,如果有多端的用户,希望使用绝对路径,请修改\e\extend\ueditor\php\config.json 文件下的"imageUrlPrefix": "你的网址",mW4龙写年华
并且修改controller.php文件,将85行的://$CONFIG['imageUrlPrefix']=$public_r['fileurl']; 前面的两个注释符 // 去掉保存即可。mW4龙写年华
3、登录帝国CMS后台,单击“系统”-“数据表与系统模型”-“管理数据表”-在你使用的系统数据表点击“管理字段”(默认是新闻系统数据表,小编使用的是文章系统数据表,所以就修改文章系统数据表的“管理字段”)-“修改newstext字段”下面的“输入表单替换html代码(增加字段时请留空)”mW4龙写年华
复制粘贴以下代码提交即可:mW4龙写年华
<?phpmW4龙写年华
$ziduan='newstext';//编辑器使用的字段名称mW4龙写年华
if($enews=='MAddInfo' || $enews=='MEditInfo'){//前台投稿mW4龙写年华
$qiantai=1;mW4龙写年华
$ziduanzhi=$ecmsfirstpost==1?"":DoReqValue($mid,$ziduan,stripSlashes($r[$ziduan]));mW4龙写年华
}else{//后台mW4龙写年华
$qiantai=0;mW4龙写年华
$ziduanzhi=$ecmsfirstpost==1?"":stripSlashes($r[$ziduan]);mW4龙写年华
}mW4龙写年华
?>mW4龙写年华
<script>var classid='<?=$classid?>',infoid='<?=$id?>',filepass='<?=$filepass?>',ehash='<?=$ecms_hashur[ehref]?>',qiantai='<?=$qiantai?>';//把参数传给编辑器,增加支持7.2版本的金刚模式</script>mW4龙写年华
<script type="text/javascript" charset="utf-8" src="<?=$public_r['newsurl']?>e/extend/ueditor/ueditor.config.js"></script>mW4龙写年华
<script type="text/javascript" charset="utf-8" src="<?=$public_r['newsurl']?>e/extend/ueditor/ueditor.all.min.js"></script>mW4龙写年华
<script type="text/javascript" charset="utf-8" src="<?=$public_r['newsurl']?>e/extend/ueditor/ueditor.toolbarconfig.js"></script>mW4龙写年华
<textarea id="<?=$ziduan?>" name="<?=$ziduan?>"><?=$ziduanzhi?></textarea>mW4龙写年华
<script type="text/javascript">mW4龙写年华
<?=$ziduan?>=UE.getEditor('<?=$ziduan?>',{mW4龙写年华
serverUrl: "<?=$public_r['newsurl']?>e/extend/ueditor/php/controller.php",//自己的请求接口mW4龙写年华
toolbars:Default,//工具栏配置文件,具体参考ueditor.toolbarconfig.js文件中说明mW4龙写年华
pageBreakTag:'',//帝国分页标签mW4龙写年华
initialFrameWidth:'100%',//编辑器宽mW4龙写年华
initialFrameHeight:300//编辑器高mW4龙写年华
//等等其它配置自行添加,参考UE默认配置文件复制修改即可mW4龙写年华
});mW4龙写年华
//自定义请求参数mW4龙写年华
<?=$ziduan?>.ready(function(){mW4龙写年华
<?=$ziduan?>.execCommand('serverparam',{mW4龙写年华
'filepass':'<?=$filepass?>',//修改时候是信息IDmW4龙写年华
'classid' :'<?=$classid?>',mW4龙写年华
'qiantai':<?=$qiantai?>mW4龙写年华
});mW4龙写年华
});mW4龙写年华
</script>mW4龙写年华
<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#DBEAF5">mW4龙写年华
<tr height="25"> mW4龙写年华
<td bgcolor="#FFFFFF"> <input name="dokey" type="checkbox" value="1"<?=$r[dokey]==1?' checked':''?>>mW4龙写年华
关键字替换&nbsp;&nbsp; <input name="copyimg" type="checkbox" id="copyimg" value="1">mW4龙写年华
远程保存图片(mW4龙写年华
<input name="mark" type="checkbox" id="mark" value="1">mW4龙写年华
<a href="SetEnews.php" target="_blank">加水印</a>)&nbsp;&nbsp; mW4龙写年华
<input name="copyflash" type="checkbox" id="copyflash" value="1">mW4龙写年华
远程保存FLASH(地址前缀: mW4龙写年华
<input name="qz_url" type="text" id="qz_url" size="">mW4龙写年华
)</td>mW4龙写年华
</tr>mW4龙写年华
<tr height="25">mW4龙写年华
<td bgcolor="#FFFFFF"><input name="repimgnexturl" type="checkbox" id="repimgnexturl" value="1"> 图片链接转为下一页&nbsp;&nbsp; <input name="autopage" type="checkbox" id="autopage" value="1">自动分页mW4龙写年华
,每 mW4龙写年华
<input name="autosize" type="text" id="autosize" value="5000" size="5">mW4龙写年华
个字节为一页&nbsp;&nbsp; 取第 mW4龙写年华
<input name="getfirsttitlepic" type="text" id="getfirsttitlepic" value="" size="1">mW4龙写年华
张上传图为标题图片( mW4龙写年华
<input name="getfirsttitlespic" type="checkbox" id="getfirsttitlespic" value="1">mW4龙写年华
缩略图: 宽 mW4龙写年华
<input name="getfirsttitlespicw" type="text" id="getfirsttitlespicw" size="3" value="<?=$public_r[spicwidth]?>">mW4龙写年华
*高mW4龙写年华
<input name="getfirsttitlespich" type="text" id="getfirsttitlespich" size="3" value="<?=$public_r[spicheight]?>">mW4龙写年华
)</td>mW4龙写年华
</tr>mW4龙写年华
</table>
特别说明:
1.本站百分之九十资源均为免费,百分之十需要注册会员收费,用来维护网站。

2.若是资源链接丢失,请在网站资源下方留言,我们会及时补充丢失链接。

3.白嫖不可怕,可怕是白眼狼式的白嫖,毫无感恩的白嫖。

4.网站资源千千万,本站资源万里选,不是精华不收录,浪费时间和精力。

打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,你说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

资源分享不易,你的支持,将会是我继续前行的动力!!!

留言与评论(共有 0 条评论)
   
验证码:
博客主人:草根站长 博 主: 闲来没事喜欢研究电脑影视,电子电路,并分享资源和心得技巧,资深技术宅。
浏览 87827 次 运行 0 天数