In case anyone is interested, I wrote a solution for this using Prototype. In order for the button to display correctly, I had to specify extraPlugins: 'ajaxsave' from a call to the CKEDITOR.replace() method.
Here is the .js plugin:
CKEDITOR.plugins.add('ajaxsave', { init: function(editor) { var pluginName = 'ajaxsave'; editor.addCommand( pluginName, { exec : function( editor ) { new Ajax.Request('ajaxsave.php', { method: "POST", parameters: { filename: 'index.html', editor: editor.getData() }, onFailure: function() { ThrowError("Error: The server has returned an unknown error"); }, on0: function() { ThrowError('Error: The server is not responding. Please try again.'); }, onSuccess: function(transport) { var resp = transport.responseText;
IronHmmer Nov 15 '11 at 19:08 2011-11-15 19:08
source share