Fighting with CKEditor

Trying to upgrade our CMS from FCKEditor 2.x to CKEditor 3.0.  Where somethings are easier to do, others . . . not so much.  Like overriding the Save button built into the editor for doing AJAX posts.  In 2.x it was one line of code (inside the onComplete function).
function FCKeditor_OnComplete(editorInstance)
{
    // causes save icon to open the custom save dialog
    editorInstance.LinkedField.form.onsubmit = showSaveDialog; 
}
However in 3.x you apparently have to create a new plugin to replace the current save plugin.  To be clear, this is lame, poorly documented and  . . . well, lame.
They know this is lame as per this item in the bug tracker.
http://dev.fckeditor.net/ticket/4507
but it apparently isn't lame enough for them to actually roll said fix into the production code.

So, I'm working on a plugin.  Stay tuned, I shall conquer this beast and then post the code so others won't have to suffer such pain.

0 comments:

Post a Comment