如何检测ckeditor实例中的更改事件? [英] How can I detect on change event in ckeditor instance?
问题描述
我想实现一个直播编辑。当您在ckeditor中编辑内容时,相同的内容会在相同时间内显示在其他地方(如div,p等)。
I want realize a "live" editing. When you editing content in ckeditor, the same content appear in other place (like div, p, etc.) in same time.
其他有趣的问题:当我移除display:none和visibility:隐藏从文本区域,附加到ckeditor,空。但是如果我尝试获取textarea($('#text_editor')。val())的值有来自ckeditor的内容。什么是魔法?
Other interesting question: when I removed display:none and visibility:hidden from text area, which attach to ckeditor, I saw, that it's empty. But if I try to get value of textarea ($('#text_editor').val()) there are content from ckeditor. What is the magic?
推荐答案
ckeditor的开发人员开发了一个 onchange插件。
One of the developers of ckeditor has developed an onchange plugin.
这篇关于如何检测ckeditor实例中的更改事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!