帝国cms7.2编辑器换成百度编辑器的方法

2019-07-20   阅读:3174   分类:后端    标签: 帝国cms

步骤1,百度编辑器UEditor下载地址:http://ueditor.baidu.com/website/download.html

在这个网页中下载最新版本,防止漏洞。

步骤2,下载后会有个文件夹,上传至帝国cms的/e/data/ecmseditor/下,注意,我的正确操作是将下载后解压出来的utf8文件夹下的文件,全部复制覆盖到/mnt/www/kcw/e/data/ecmseditor/ueditor/目录下。如下图所示:

QQ图片20190720210508.png

步骤3.去选择一下使用百度编辑器的字段,具体操作:系统-->新建表与系统模型-->管理数据表-->管理字段

QQ图片20190720210626.png

QQ图片20190720210631.png

QQ图片20190720210636.png

把下面的引用代码复制一下:

<script type="text/javascript" src="/e/data/ecmseditor/ueditor/ueditor.config.js"></script>  
<script type="text/javascript" src="/e/data/ecmseditor/ueditor/ueditor.all.js"></script>  
<link rel="stylesheet" href="/e/data/ecmseditor/ueditor/themes/default/css/ueditor.css">  
<script type="text/plain" id="myEditor" name="newstext">  <?=$ecmsfirstpost==1?"":stripSlashes($r[newstext])?>  </script>  
<script type="text/javascript">  
var editor = new baidu.editor.ui.Editor();  
editor.render("myEditor");  
editor.classid = <?=$classid?>;  
editor.filepass = <?=$filepass?>;  
</script>  
<table width="100%"  border="0" cellpadding="3" cellspacing="1" bgcolor="#DBEAF5">  
<tr>  

        <td bgcolor="#FFFFFF"> 

            <input name="dokey" type="checkbox" value="1"<?=$r[dokey]==1?' checked':''?>>  关键字替换   <input name="copyimg" type="checkbox" id="copyimg" value="1">  远程保存图片(  <input name="mark" type="checkbox" id="mark" value="1">  <a href="SetEnews.php" target="_blank">加水印</a>)    <input name="copyflash" type="checkbox" id="copyflash" value="1">  远程保存FLASH(地址前缀:  <input name="qz_url" type="text" id="qz_url" size="">  )</td>  </tr>  <tr>    <td bgcolor="#FFFFFF"><input name="repimgnexturl" type="checkbox" id="repimgnexturl" value="1"> 图片链接转为下一页   <input name="autopage" type="checkbox" id="autopage" value="1"> 自动分页  ,每  <input name="autosize" type="text" id="autosize" value="5000" size="5">  个字节为一页   取第  <input name="getfirsttitlepic" type="text" id="getfirsttitlepic" value="" size="1">  张上传图为标题图片(  <input name="getfirsttitlespic" type="checkbox" id="getfirsttitlespic" value="1">  缩略图: 宽  <input name="getfirsttitlespicw" type="text" id="getfirsttitlespicw" size="3" value="<?=$public_r[spicwidth]?>">  *高  <input name="getfirsttitlespich" type="text" id="getfirsttitlespich" size="3" value="<?=$public_r[spicheight]?>">  )
        </td>  
</tr>  
</table>

最终效果:

QQ图片20190720210812.png


【腾讯云】 爆款2核2G3M云服务器首年 61元,2核2G4M云服务器新老同享 99元/年,续费同价

‘简忆博客’微信公众号 扫码关注‘简忆博客’微信公众号,获取最新文章动态
转载:请说明文章出处“来源简忆博客”。http://www.tpxhm.com/adetail/164.html

×
觉得文章有用就打赏一下文章作者
微信扫一扫打赏 微信扫一扫打赏
支付宝扫一扫打赏 支付宝扫一扫打赏

文章评论(1)

登录

小布同学2019-07-28 20:17:06
test回复

简忆博客壁纸一
简忆博客壁纸二
简忆博客壁纸三
简忆博客壁纸四
简忆博客壁纸五
简忆博客壁纸六
简忆博客壁纸七
简忆博客壁纸八
头像

简忆博客
勤于学习,乐于分享

置顶推荐

打赏本站

如果你觉得本站很棒,可以通过扫码支付打赏哦!
微信扫码:你说多少就多少~
微信扫码
支付宝扫码:你说多少就多少~
支付宝扫码
×