Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Update editor content immediately before save in CKEditor plug-in

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?

like image 571
Tim Down Avatar asked Feb 16 '10 11:02

Tim Down


1 Answers

You could use the getData event, but be careful because it's fired also for internal uses.

I've filed http://dev.fckeditor.net/ticket/5254 to recreate the previous event

like image 56
AlfonsoML Avatar answered Sep 23 '22 12:09

AlfonsoML