DedeCMS编辑器fck更换成eWebEditor编辑器具体步骤
<p style='margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";'>将eWebEditor编辑器插入DEDE后台的效果: </p>
<p>
<img title="DedeCMS编辑器fck更换成eWebEditor编辑器具体步骤" alt="DedeCMS编辑器fck更换成eWebEditor编辑器具体步骤" src="https://zhuji.jb51.net/uploads/img/202305/d42debaeb26bad722e66203c58460ae8.jpg" style="max-width:100%!important;height:auto!important;border: 1px solid rgb(204, 204, 204); vertical-align: middle; padding: 1px; overflow: hidden; max-width: 696px; font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px; width: 602px; height: 408px;'></p>
<p style='margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";'>
<br>
完全Word在线编辑的功能,让你从此摆脱发可编辑器卡得死,进入流畅干净编辑界面新时代。 <br><br><strong>下面是具体步骤</strong>: <br>
首先,你要知道eWebEditor是一个什么工具。 <br>
eWebEditor是由国内的一家软件公司开发的在线文字编辑工具, <br>
现在已经被几家CMS系统所集成, <br>
eWebEditor是一个开源的在线文字编辑器, <br>
它的最新收费版是eWebEditor V6.2,最新免费版是eWebEditor V4.6,相当于原收费版V4.6。 <br><br><strong>第一步</strong>: <br>
首先下载eWebEditor最新免费版, <br>
名字叫做eWebEditor V4.6精简版, <br>
但是其实功能没什么缺陷,就跟收费版V4.6是一样的。 <br>
地址是:http://www.ewebeditor.net/download.asp。 <br><br><strong>第二步</strong>: <br>
解压下载的eWebEditor V4.6精简版压缩文件, <br>
将得到7个文件夹及3个文件, <br>
只要将其中ewebeditor.htm文件的: <br>
config.ServerExt = "asp"; <br><br><strong>这段代码</strong>, <br>
修改为: <br>
config.ServerExt = "php"; <br>
这样eWebEdito编辑器就可以在PHP系统上使用了(可见这个编辑器兼容性极强)。 <br>
将以上文件夹及文件全部完整上传到目录:<你的网站根目录/include/你的eWebEditor文件夹名>之下。 <br>
你的eWebEditor文件夹名最好自己编一个文件夹名,不要用eWebEditor这个名字,这样别人就找不到你的eWebEditor编辑器,提高网站的安全性。 <br><br><strong>第三步</strong>: <br>
修改织梦DEDECMS的后台HTM文件,将eWebEditor插入其中,并替换原FCK文本编辑器。 <br>
比如你要替换添加文档页的FCK文本编辑器, <br>
找到/dede/templets/article_add.htm文件。 <br>
将article_add.htm文件内如下代码段进行修改: <br>
</p>
<div class="msgheader" style='margin: 3px auto 0px; padding: 0px 3px; outline: none; line-height: 21.6px; clear: both; border-width: 1px; border-style: solid; border-color: rgb(0, 153, 204); background: rgb(246, 251, 255); overflow: hidden; font-family: tahoma, arial, "Microsoft YaHei";'>
<div class="right">
<span><u>复制代码</u></span>
</div>
<p>
代码如下:</p>
</div>
<div class="msgborder" id="phpcode3" style='margin: 0px auto 3px; padding: 0px 3px; outline: none; line-height: 25.2px; font-size: 14px; clear: both; border-right: 1px solid rgb(0, 153, 204); background: rgb(221, 237, 251); overflow: hidden; border-left: 1px solid rgb(0, 153, 204); word-break: break-all; border-bottom: 1px solid rgb(0, 153, 204); word-wrap: break-word; font-family: tahoma, arial, "Microsoft YaHei";'>
<br>
<td> <br>
<?php <br>
GetEditor("body",$body,450); <br>
?> <br>
</td> </div>
<p>
<br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>先将这段代码注释掉,效果如下: </span></p>
<div class="msgheader" style='margin: 3px auto 0px; padding: 0px 3px; outline: none; line-height: 21.6px; clear: both; border-width: 1px; border-style: solid; border-color: rgb(0, 153, 204); background: rgb(246, 251, 255); overflow: hidden; font-family: tahoma, arial, "Microsoft YaHei";'>
<div class="right">
<span><u>复制代码</u></span>
</div>
<p>
代码如下:</p>
</div>
<div class="msgborder" id="phpcode4" style='margin: 0px auto 3px; padding: 0px 3px; outline: none; line-height: 25.2px; font-size: 14px; clear: both; border-right: 1px solid rgb(0, 153, 204); background: rgb(221, 237, 251); overflow: hidden; border-left: 1px solid rgb(0, 153, 204); word-break: break-all; border-bottom: 1px solid rgb(0, 153, 204); word-wrap: break-word; font-family: tahoma, arial, "Microsoft YaHei";'>
<br>
<td> <br>
<!--<?php <br>
GetEditor("body",$body,450); <br>
?>--> <br>
</td> </div>
<p>
<br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>然后将<INPUT type="hidden" name="body" id="body" value=""><iframe ID="eWebEditor1" src="/include/你的ewebeditor文件夹/ewebeditor.htm?id=body&style=coolblue" frameborder="0" scrolling="no" width="600" HEIGHT="350"></iframe>插入注释前面,效果如下: </span></p>
<div class="msgheader" style='margin: 3px auto 0px; padding: 0px 3px; outline: none; line-height: 21.6px; clear: both; border-width: 1px; border-style: solid; border-color: rgb(0, 153, 204); background: rgb(246, 251, 255); overflow: hidden; font-family: tahoma, arial, "Microsoft YaHei";'>
<div class="right">
<span><u>复制代码</u></span>
</div>
<p>
代码如下:</p>
</div>
<div class="msgborder" id="phpcode5" style='margin: 0px auto 3px; padding: 0px 3px; outline: none; line-height: 25.2px; font-size: 14px; clear: both; border-right: 1px solid rgb(0, 153, 204); background: rgb(221, 237, 251); overflow: hidden; border-left: 1px solid rgb(0, 153, 204); word-break: break-all; border-bottom: 1px solid rgb(0, 153, 204); word-wrap: break-word; font-family: tahoma, arial, "Microsoft YaHei";'>
<br>
<td> <br>
<INPUT type="hidden" name="body" id="body" value=""> <br>
<iframe ID="eWebEditor1" src="/include/你的ewebeditor文件夹/ewebeditor.htm?id=body&style=coolblue" frameborder="0" scrolling="no" width="600" HEIGHT="350"></iframe> <br>
<!--<?php <br>
GetEditor("body",$body,450); <br>
?>--> <br>
</td> </div>
<p>
<br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>这样就完成了article_add.htm文件的修改工作。 </span><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>注意:iframe那段代码,一定要插在被注释的那段代码之前,否则ewebeditor编辑器撑不开包含它的表格,显示不完全。 </span><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><strong style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>第四步</strong><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>: </span><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>将修改好的article_add.htm上传替换原文件,这样你刷新后台添加文档页面,新的编辑器就出现了。 </span><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>注意:其他用到文字编辑器的页面都可以用上面的办法进行替换。 </span><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>希望大家从此进入信息化新时代,告别FCK(发可)编辑器。珍爱生命,远离FCK。 </span><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>下面是利用ewebeditor编辑器在DEDECMS后台成功发布文章的截图: </span></p>
<p style='margin: 0px; padding: 5px 0px; outline: none; font-size: 14px; line-height: 30px; font-family: tahoma, arial, "Microsoft YaHei";'>
</p>
<p>
<img title="DedeCMS编辑器fck更换成eWebEditor编辑器具体步骤" alt="DedeCMS编辑器fck更换成eWebEditor编辑器具体步骤" src="https://zhuji.jb51.net/uploads/img/202305/3f37b2547c6fd49c9a0d1332e9484916.jpg" style="max-width:100%!important;height:auto!important;border: 1px solid rgb(204, 204, 204); vertical-align: middle; padding: 1px; overflow: hidden; max-width: 696px; font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px; width: 580px; height: 134px;'></p>
頁:
[1]