1、根据自己使用的帝国cms版本编码下载对应的ueditor版本

下载地址 http://ueditor.baidu.com/website/download.html#ueditor

2、解压附件,重命名为”ueditor“,将”ueditor“文件夹上传至帝国cms的/e/data/ecmseditor/下

3、进入帝国CMS后台,依次点击:系统 - 新建表与系统模型 - 管理数据表 - 管理字段,修改字段输入表单

4、修改”newstext 新闻正文“字段

5、将以下代码,覆盖到”输入表单替换HTML代码“处

 1 <script type="text/javascript" src="/e/data/ecmseditor/ueditor/ueditor.config.js"></script>
2 <script type="text/javascript" src="/e/data/ecmseditor/ueditor/ueditor.all.js"></script>
3 <link rel="stylesheet" href="/e/data/ecmseditor/ueditor/themes/default/ueditor.css">
4 <script type="text/plain" id="myEditor" name="newstext">
5 <?=$ecmsfirstpost==1?"":stripSlashes($r[newstext])?>
6 </script>
7 <script type="text/javascript">
8 var editor = new baidu.editor.ui.Editor();
9 editor.render("myEditor");
10 editor.classid = <?=$classid?>;
11 editor.filepass = <?=$filepass?>;
12 </script>
13 <table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#DBEAF5">
14 <tr>
15 <td bgcolor="#FFFFFF"> <input name="dokey" type="checkbox" value="1"<?=$r[dokey]==1?' checked':''?>>
16 关键字替换&nbsp;&nbsp; <input name="copyimg" type="checkbox" id="copyimg" value="1">
17 远程保存图片(
18 <input name="mark" type="checkbox" id="mark" value="1">
19 <a href="SetEnews.php" target="_blank">加水印</a>)&nbsp;&nbsp;
20 <input name="copyflash" type="checkbox" id="copyflash" value="1">
21 远程保存FLASH(地址前缀:
22 <input name="qz_url" type="text" id="qz_url" size="">
23 )</td>
24 </tr>
25 <tr>
26
27 <td bgcolor="#FFFFFF"><input name="repimgnexturl" type="checkbox" id="repimgnexturl" value="1"> 图片链接转为下一页&nbsp;&nbsp; <input name="autopage" type="checkbox" id="autopage" value="1"> 自动分页
28 ,每
29 <input name="autosize" type="text" id="autosize" value="5000" size="5">
30 个字节为一页&nbsp;&nbsp; 取第
31 <input name="getfirsttitlepic" type="text" id="getfirsttitlepic" value="" size="1">
32 张上传图为标题图片(
33 <input name="getfirsttitlespic" type="checkbox" id="getfirsttitlespic" value="1">
34 缩略图: 宽
35 <input name="getfirsttitlespicw" type="text" id="getfirsttitlespicw" size="3" value="<?=$public_r[spicwidth]?>">
36 *高
37 <input name="getfirsttitlespich" type="text" id="getfirsttitlespich" size="3" value="<?=$public_r[spicheight]?>">
38 )</td>
39 </tr>
40 </table>

6、帝国CMS百度编辑器整合完成,其他模型整合同理。

帝国CMS前台显示代码高亮教程。将以下代码复制到要显示代码高亮的页面。

1 <script src="/e/data/ecmseditor/ueditor/third-party/SyntaxHighlighter/shCore.js" type="text/javascript"></script>
2 <link rel="stylesheet" href="/e/data/ecmseditor/ueditor/third-party/SyntaxHighlighter/shCoreDefault.css">
3 <script type="text/javascript">
4 SyntaxHighlighter.all();
5 </script>

最后在加一条解决百度编辑器代码高亮不换行的BUG

1、找到高亮代码显示的css文件  /e/data/ecmseditor/ueditor/third-party/SyntaxHighlighter/shCoreDefault.css

2、搜索

1 width:100%!important;margin:.3em 0 .3em 0!important;position:relative!important;overflow:auto!important;background-color:#f5f5f5!important;border:1px solid #ccc!important;

3、替换成以下代码

1 width:100%!important;margin:.3em 0 .3em 0!important;position:relative!important;overflow:auto!important;background-color:#f5f5f5!important;border:1px solid #ccc!important;word-break:break-all;

4、保存完成

原来的代码:

<?=ECMS_ShowEditorVar("newstext",$ecmsfirstpost==1?"":stripSlashes($r[newstext]),"Default","","1000px","800px")?>

<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<?=$ecms_hashur[whehref]?>" 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>

帝国cms7.5整合百度编辑器ueditor教程的更多相关文章

  1. 帝国cms7.0整合百度编辑器ueditor教程

    帝国cms7.0整合百度编辑器ueditor教程开始 1.根据自己使用的帝国cms版本编码下载对应的ueditor版本 下载地址 http://ueditor.baidu.com/website/do ...

  2. ECSHOP安装百度编辑UEditor教程

    ECSHOP系统自带的编辑器大家用过都知道,难用不说,还不能批量上传图片.很多朋友都喜欢百度编辑器,因为百度编辑器功能强大,使用方便,而且不会生成太多多余代码.网上有许多ECSHOP整合百度编辑器的教 ...

  3. yii2整合百度编辑器umeditor

    作者:白狼 出处:www.manks.top/article/yii2_umeditor 本文版权归作者,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责 ...

  4. [转载]百度编辑器-Ueditor使用

    前段时间发表过一篇关于“KindEditor在JSP中使用”的博文.这几天在沈阳东软进行JavaWeb方面的实习工作,在一个CMS系统的后台和博客板块中又要用到文本编辑器,突然发现了这个——百度编辑器 ...

  5. 百度编辑器ueditor前台代码高亮无法自动换行解决方法

    这两天本站成功安装整合了百度编辑器ueditor,用着还挺不错,但是遇到了点小问题 问题描述:   在内容里面插入代码高亮显示,后台编辑器中是可以自动换行的,但是发表后,在前台查看,发现代码不能自动换 ...

  6. 关于百度编辑器UEditor的一点说明

    大家在使用的时候要特别注意editor_config.js中的“URL”这个参数 我的理解:1.这个参数是editor整个结构的总路径          2.首先要把这个路径配置好了.才能正常的显示, ...

  7. 百度编辑器ueditor插入表格没有边框颜色的解决方法

    附:从word excel 中 复制的表格提交后无边框,参考这个同学的,写的很详细:   http://blog.csdn.net/lovelyelfpop/article/details/51678 ...

  8. 百度编辑器ueditor插入表格没有边框,没有颜色的解决方法 2015-01-06 09:24 98人阅读 评论(0) 收藏

    百度富文本编辑器..很强大.. - - ,不过有些BUG..真的很无解.. 最近用这个,发现上传的表格全部没有表框.. 解决办法如下: 转载的.. 百度编辑器ueditor插入一个表格后,在编辑过程中 ...

  9. 百度编辑器ueditor 异步加载时,初始化没办法赋值bug解决方法

    百度编辑器ueditor 异步加载时,初始化没办法赋值bug解决方法 金刚 前端 ueditor 初始化 因项目中使用了百度编辑器——ueditor.整体来说性能还不错. 发现问题 我在做一个编辑页面 ...

随机推荐

  1. git安装用法和常用命令

    目录 git 下载 安装 git 工作中常用命令 Git常用命令汇总以及其它相关操作 或者 常出错误: 常用修改: 题外话(相关概念) git 下载 安装 1.下载Git,官网地址:https://g ...

  2. Fedora 30系统的升级方法

    Fedora 30 已经发布了.你可能希望将系统升级到最新版本的 Fedora.Fedora 工作站版本有图形化升级的方法.另外,Fedora 也提供了一个命令行方法,用于将 Fedora 29 升级 ...

  3. Matlab适配器模式

    适配器模式是连接两个不兼容接口的桥梁,主要分为三种:类适配器.对象适配器以及接口适配器,本文根据https://blog.csdn.net/u012359453/article/details/791 ...

  4. ss-套接字监控工具

    ss(Socket Statistics) - another utility to investigate sockets(研究套接字的另一个实用程序,原先的是netstat) ss用于转储套接字统 ...

  5. 在Windows下/Linux下安装jdk版本

    到官网https://www.oracle.com/technetwork/java/javase/downloads/index.html选择适合自己的版本, 目前我做测试和开发主要用的是jdk 8 ...

  6. Kotlin协程第一个示例剖析及Kotlin线程使用技巧

    Kotlin协程第一个示例剖析: 上一次https://www.cnblogs.com/webor2006/p/11712521.html已经对Kotlin中的协程有了理论化的了解了,这次则用代码来直 ...

  7. 关于vue的v-for遍历不显示问题

    实属不才,因为好久没看vue导致忘光了,然后发生了这么小的一个问题,惭愧. 注:vue的注册的el一定要放嘴最外层,不要和v-for放在一起,否则不会显示,因为可以这样讲,el包含的是一个容器,而v- ...

  8. GoLand——配置goproxy.io代理

    前言 由于众所周知的原因,也为了更好的下载go的包,所以找到了goproxy 配置 ctrl+alt+s->Go->Go Modules(vgo)->设置proxy为https:// ...

  9. npm包之npm-check-updates

    检查npm的依赖包是否有比较新的版本 安装 npm i -g npm-check-updates 使用 ncu --help // 查看相关命令 ncu // 检查当前项目中有没有哪些依赖包可更新 n ...

  10. C++中的常量指针和指针常量

    1.概述: const Type * pointer;常量指针(const在*之前,与类型的位置无要求),所指向的地址上的数据是常量,而指向的地址可以变化. Type * const pointer: ...