有了很多幫助,我終於得到了CKEditor來更新關聯的文本區域。 See the post here。ckeditor內容更改爲textarea更改事件 - 表單上的多個ckeditors
但是,當表單上有超過1個CKEditor時,我很難理解如何讓CKEditor更新每個關聯的文本區域。
這裏是我現在有的jQuery。它只更新窗體上的最後CKEditor的相關文本區域:
for (var i in CKEDITOR.instances) {
CKEDITOR.instances[i].on('change', function() { CKEDITOR.instances[i].updateElement() }); //update the relative hidden textarea.
}
當我在表格上5個或10 CKEditors如何更新各相關CKEditor的文本區域?
最後,你是唯一一個在互聯網上發佈了答案的人。 – dspacejs