DEDECMS栏目内容无法插入的解决办法
广告时间
|
|
||||||||||
在给江西威敏套CMS的时候,使用DEDECMS的栏目内容,发瑞在IE下添加不了内容,IE状态栏就出现了一个错误,如下。
行:33
Char:11707
错误:由于出现错误800a025e 而导致此项操作无法完成。
代码:0
URL:http://www.jxweimin.com/include/FCKeditor/editor/fckeditor.html?InstanceName=content&Toolbar=Default…..
看链接的英文估计是那个内容输入编辑页面,由于是新建的,所以是空值,没有进行界限检测吗?所以出错。。于是栏目内容便写不入数据库。或者说没能赋值给生成HTML文档的处理文件。。
GOOGLE了一下,得到如下解决方案,目前有两种方法:
1.设置一个默认值给fceditor.value, 例如
2.或者在editor/js/fckeditorcode_ie.js文件中添加以下代码:
===========================================================================
解决方法如下:
===========================================================================
在include/FCKeditor/editor/js/fckeditorcode_ie.js文件中添加以下代码:
..IEquals(‘body’)){if
(FCK.EditorDocument.body.childNodes.length==1&&FCK.EditorDocument.body.firstChild==D){
/* INSERT HERE 在这插入哦。。
* Bug #1764: Don’t move the selection if the
* current selection isn’t in the editor
* document.
* Fixes FCKeditor stealing focus when empty
*/
if ( FCKSelection._GetSelectionDocument( FCK.EditorDocument.selection ) !=
FCK.EditorDocument ) { return; };
/*
*
*/
var B=FCK.EditorDocument.body.createTextRange();var F=false;if
(!D.childNodes.firstChild){D.appendChild…
红色部份是文件里已存在部份。插入蓝色的代码。。。。。黑色部份是注释部份,那个JS代码用DW打开是一连串的,不好添加注释。


