新闻中心

帝国cms内容管理系统怎么安装ueditor编辑器

作者 / 无忧主机 时间 2013-12-04 22:02:01

用过帝国cms的人都知道,帝国的默认使用的编辑器(fckeditor)实在是实用性太低了,而且还不美观,这样使得在编辑文章这种比较枯燥的工作更少了点颜色。今天无忧小编给大家介绍一款功能强大,界面美观的编辑器,这个就是百度编辑器ueditor这款编辑器,今天我就跟大家说下帝国cms如和去整合这个编辑器。 1、首先是根据自己cms的版本下载相应版本 无忧小编使用的是帝国cms的gbk版本程序,所以下载的是对应的ueditor的gbk版本的。 2、将下载的文件夹上传到e/data/ecmseditor/下 3.修改字段输入表单,具体操作:系统-->新建表与系统模型-->管理数据表-->管理字段   [caption id="attachment_13290" align="alignnone" width="150"]帝国CMS 帝国CMS[/caption] [caption id="attachment_13292" align="alignnone" width="150"]帝国CMS 帝国CMS[/caption] [caption id="attachment_13293" align="alignnone" width="150"]帝国CMS 帝国CMS[/caption] 上面的输入表单替换html为后台的编辑器替换。如果需要修改会员的投稿的编辑器,只需要把下面的投稿表单也替换成如下代码: <script type="text/javascript" src="/e/data/ecmseditor/ueditor/editor_config_admin.js"></script> <script type="text/javascript" src="/e/data/ecmseditor/ueditor/editor_all_min_admin.js"></script> <link rel="stylesheet" href="/e/data/ecmseditor/ueditor/themes/default/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':''?>> 关键字替换&nbsp;&nbsp; <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>)&nbsp;&nbsp; <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"> 图片链接转为下一页&nbsp;&nbsp; <input name="autopage" type="checkbox" id="autopage" value="1"> 自动分页 ,每 <input name="autosize" type="text" id="autosize" value="5000" size="5"> 个字节为一页&nbsp;&nbsp; 取第 <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> 以上操作在无忧主机实验室完成验证,可以在linux环境下php虚拟主机上正常替换ueditor编辑。

本文地址:https://www.51php.com/empirecms/13289.html

1
1
1
1
1
1
1

客户服务热线

0791-8623-3537

在线客服