卓越飞翔博客卓越飞翔博客

卓越飞翔 - 您值得收藏的技术分享站
技术文章11179本站已运行3223

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

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

帝国cms7.0资源整合百度编辑器ueditor教程开始

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

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

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

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

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

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

 
 
 
 
<?=$ecmsfirstpost==1?"":stripSlashes($r[newstext])?> 
 
 
var editor = new baidu.editor.ui.Editor(); 
editor.render("myEditor"); 
editor.classid = <?=$classid?>; 
editor.filepass = <?=$filepass?>; 
 
 
 
 > 
关键字替代    
远程保存图片( 
 
搅拌印)   
 
远程保存FLASH(地址前缀: 
 
) 
 
 
 
 图片链接转为下一页    自动分页 
,每 
 
个字节为一页   挑第 
 
张上传图为标题图片( 
 
缩略图: 阔 
"> 
*低 
"> 
) 
 

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

帝国CMS前台表明代码高亮教程。将以下代码导入到必须表明代码CT8325BBP的页面。

    

      
SyntaxHighlighter.all();       

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

1、找出高亮代码表明的css文件  /e/data/ecmseditor/ueditor/third-party/SyntaxHighlighter/shCoreDefault.css

2、搜索

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、替换成以下代码

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、保存顺利完成

有关专题

卓越飞翔博客
上一篇: 帝国TAGS列表页上下页显示过多方法
下一篇: 帝国CMS教程调用表内字段=某值的信息数量方法
留言与评论(共有 0 条评论)
   
验证码:
隐藏边栏