I've seen a few people ask how to override the save function so that it can be handled by javascript instead of via a form submission. I have a working solution and it's simple (though it took a while for me to figure this out)
// create the editor
var ckEditor = CKEDITOR.replace( ...etc )
// wait until the editor is done initializing
ckEditor.on("instanceReady",function() {
// overwrite the default save function
ckEditor.addCommand( "save", {
modes : { wysiwyg:1, source:1 },
exec : function () {
// get the editor content
var theData = ckEditor.getData();
alert("insert your code here");
}
});
