【发布时间】:2014-03-30 14:04:59
【问题描述】:
在很多帮助下,我终于得到了 CKEditor 来更新相关的文本区域。 See the post here.
但是,当表单上有超过 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 个 CKEditor 时,如何更新每个关联的 CKEditor 文本区域?
【问题讨论】: