在CKEditor插件中保存之前立即更新编辑器内容 [英] Update editor content immediately before save in CKEditor plug-in
问题描述
我正在开发一个用于CKEditor的插件,需要在保存之前立即对编辑器的内容进行一些更改。在FCKeditor中,我使用 OnAfterLinkedFieldUpdate
事件实现了这一点,但是我还没有能够在CKEditor中找到一个等效的方法。我曾经希望有一个合适的事件挂钩,但似乎没有出现。有没有人知道这样做的方法?
I am developing a plug-in for CKEditor that needs to make some changes to the editor's content immediately before saving. In FCKeditor, I achieved this using the OnAfterLinkedFieldUpdate
event but I haven't yet been able to find an equivalent way of doing this in CKEditor. I had hoped there would be a suitable event to hook into but there doesn't appear to be. Does anyone know of a way of doing this?
推荐答案
你可以使用getData事件,但要小心,内部使用。
You could use the getData event, but be careful because it's fired also for internal uses.
我提交了 http:// dev .fckeditor.net / ticket / 5254 重新创建上一个活动
I've filed http://dev.fckeditor.net/ticket/5254 to recreate the previous event
这篇关于在CKEditor插件中保存之前立即更新编辑器内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!