How can I detect on change event in ckeditor instance?

*爱你&永不变心* 提交于 2019-11-28 06:25:06

问题


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.

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?


回答1:


One of the developers of ckeditor has developed an onchange plugin.



来源:https://stackoverflow.com/questions/10391136/how-can-i-detect-on-change-event-in-ckeditor-instance

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!