我在Firefox中遇到了fckeditor问题。当用户转到页面时,html(编码)存储在隐藏的输入元素中。我调用预定义的fckeditor javascript事件来使用来自隐藏的ContentBody元素的HTML填充我的编辑器。Firefox中隐藏的输入元素
function FCKeditor_OnComplete(editorInstance)
{
editorInstance.InsertHtml("");
var sample = document.getElementById("ContentBody").value;
editorInstance.InsertHtml(sample);
}
这会在IE中自动填充所需文本的编辑器,但在Firefox中不会。萤火虫给我的错误:
A为空[该误差打破]变种 FCKW3CRange =函数(A){this._Docume ... eateFromRange(this._Document,这一点);}}; \ r \ n
使用Firebug我可以确定事件方法FCKeditor_OnComplete()只是在使用Firefox时未被触发。但是,在IE中。有关如何使这两种浏览器都能正常工作的想法?
为ContentBody的HTML是: <input type="hidden" name="ContentBody" id="ContentBody" value="<%=Model.Article%>" />
请编写HTML代码 “ContentBody” – 2009-08-03 21:09:03
请参见上面。感谢您的帮助! – splatto 2009-08-03 21:21:15