帝国cms整合百度ueditor编辑器图文教程
<p><strong>一、UEditor简介</strong></p><p>帝国cms自带文本编辑器是fckeditor,用起来效果不太理想。</p>
<p>百度也推出了自己的编辑器UEditor</p>
<p>UEditor是由WEB前端研发部开发的所见即所得的开源富文本编辑器,具有轻量、可定制、用户体验优秀等特点。开源基于BSD协议,所有源代码在协议允许范围内可自由修改和使用。百度UEditor的推出,可以帮助不少网站开者在开发富文本编辑器所遇到的难题,节约开发者因开发富文本编辑器所需要的大量时间,有效降低了企业的开发成本。</p>
<p>下边先来贴出几张相片浏览一下百度编辑器UEditor一些特色功能吧!</p>
<p> <strong><img style="max-width:100%!important;height:auto!important;"alt="" height="263" src="https://zhuji.jb51.net/uploads/allimg/20250616/1-2506161423264C.jpg" width="677" /></strong></p>
<p style="text-align:center"><img style="max-width:100%!important;height:auto!important;"alt="" height="467" src="https://zhuji.jb51.net/uploads/allimg/20250616/1-25061614232B32.jpg" width="681" /></p>
<p style="text-align:center"></p>
<p style="text-align:center"><img style="max-width:100%!important;height:auto!important;"alt="" height="418" src="https://zhuji.jb51.net/uploads/allimg/20250616/1-25061614232AL.jpg" width="687" /></p>
<p style="text-align:center"><img style="max-width:100%!important;height:auto!important;"alt="" height="361" src="https://zhuji.jb51.net/uploads/allimg/20250616/1-250616142326430.jpg" width="675" /></p>
<p style="text-align:center"><img style="max-width:100%!important;height:auto!important;"alt="" src="https://zhuji.jb51.net/uploads/allimg/20250616/1-25061614232K34.jpg" /></p>
<p style="text-align:center"></p>
<p><strong>二、帝国CMS6.6整合UEditor</strong></p>
<p>1.根据自己cms的版本下载相应版本<strong>ueditor1.2.2_GBK.rar,ueditor1.2.2_utf8.rar</strong></p>
<p>2.上传至帝国cms的/e/data/ecmseditor/下</p>
<p>3.修改字段输入表单,具体操作:系统-->新建表与系统模型-->管理数据表-->管理字段</p>
<p>如下图所示</p>
<p style="text-align:center"><img style="max-width:100%!important;height:auto!important;"alt="" height="282" src="https://zhuji.jb51.net/uploads/allimg/20250616/1-25061614232L20.jpg" width="596" /></p>
<p style="text-align:center"><img style="max-width:100%!important;height:auto!important;"alt="" height="151" src="https://zhuji.jb51.net/uploads/allimg/20250616/1-25061614232H96.jpg" width="682" /></p>
<p style="text-align:center"><img style="max-width:100%!important;height:auto!important;"alt="" src="https://zhuji.jb51.net/uploads/allimg/20250616/1-25061614232L32.jpg" /></p>
<p style="text-align:center"></p>
<p style="text-align:left">4.将下列代码复制入下图所示红框内</p>
<p style="text-align:left"></p>
<div class="msgheader"><div class="right"><u>复制代码</u></div>代码如下:</div>
<div class="msgborder" id="phpcode42"><br /><br /><br /><link rel="stylesheet" href="/e/data/ecmseditor/ueditor/themes/default/ueditor.css"><br /><br /><br /><table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#DBEAF5"><br /><tr><br /><td bgcolor="#FFFFFF"> <input name="dokey" type="checkbox" value="1"<?=$r==1?' checked':''?>><br />关键字替换&nbsp;&nbsp; <input name="copyimg" type="checkbox" id="copyimg" value="1"><br />远程保存图片(<br /><input name="mark" type="checkbox" id="mark" value="1"><br /><a href="SetEnews.php" target="_blank">加水印</a>)&nbsp;&nbsp;<br /><input name="copyflash" type="checkbox" id="copyflash" value="1"><br />远程保存FLASH(地址前缀:<br /><input name="qz_url" type="text" id="qz_url" size=""><br />)</td><br /></tr><br /><tr><br /><br /><td bgcolor="#FFFFFF"><input name="repimgnexturl" type="checkbox" id="repimgnexturl" value="1"> 图片链接转为下一页&nbsp;&nbsp; <input name="autopage" type="checkbox" id="autopage" value="1"> 自动分页<br />,每<br /><input name="autosize" type="text" id="autosize" value="5000" size="5"><br />个字节为一页&nbsp;&nbsp; 取第<br /><input name="getfirsttitlepic" type="text" id="getfirsttitlepic" value="" size="1"><br />张上传图为标题图片(<br /><input name="getfirsttitlespic" type="checkbox" id="getfirsttitlespic" value="1"><br />缩略图: 宽<br /><input name="getfirsttitlespicw" type="text" id="getfirsttitlespicw" size="3" value="<?=$public_r?>"><br />*高<br /><input name="getfirsttitlespich" type="text" id="getfirsttitlespich" size="3" value="<?=$public_r?>"><br />)</td><br /></tr><br /></table></div>
<p><img style="max-width:100%!important;height:auto!important;"alt="" src="https://zhuji.jb51.net/uploads/allimg/20250616/1-25061614232YR.jpg" /></p>
<p style="text-align:center"><img style="max-width:100%!important;height:auto!important;"alt="" src="https://zhuji.jb51.net/uploads/allimg/20250616/1-25061614232Q56.jpg" /></p>
<p style="text-align:left">5./e/admin/AddNews.php,333行 <html>之上增加一行添加代码来解决某些浏览器可能错位问题<br /> </p>
<div class="msgheader"><div class="right"><u>复制代码</u></div>代码如下:</div>
<div class="msgborder" id="phpcode43"><br /><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"></div>
<p><br />6.关闭网页,重新启动。</p>
<div class="clearfix"></div>
頁:
[1]