Then define a javascript fucntion saveMyData() which submits your form via AJAX and returns false (preventing the actual HTML form from submitting).
To get the editor content for use in your saveMyData AJAX function you can do something like:
var oEditor = FCKeditorAPI.GetInstance('content') ; var editorContent = encodeURI( oEditor.GetXHTML() );
So effectively you are not doing this any differently than you would submit a non-editor AJAX form, and just have to pull the editor value to complete the puzzle.
Somebody correct me if I'm wrong or have missed something about how the "Save" button in the editor works.
RE: Save Button/Function without Reloading -
http://wiki.fckeditor.net/Developer%27s ... script_API
RE: Save Button/Function without Reloading - AJAX
but is there a "OnSave" Event or how can i use the "Save-Button".
Must i use ist from the POST function with an onSubmit?
RE: Save Button/Function without Reloading -
onSubmit="return saveMyData()"
in your html form that the editor is in.
Then define a javascript fucntion saveMyData() which submits your form via AJAX and returns false (preventing the actual HTML form from submitting).
To get the editor content for use in your saveMyData AJAX function you can do something like:
var oEditor = FCKeditorAPI.GetInstance('content') ;
var editorContent = encodeURI( oEditor.GetXHTML() );
So effectively you are not doing this any differently than you would submit a non-editor AJAX form, and just have to pull the editor value to complete the puzzle.
Somebody correct me if I'm wrong or have missed something about how the "Save" button in the editor works.
RE: Save Button/Function without Reloading -
http://www.saulmade.nl/FCKeditor/FCKPlugins.php
http://sourceforge.net/tracker/index.ph ... tid=737639
http://sourceforge.net/forum/forum.php? ... _id=257179