我在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