normal saving (GENERAL)
submit (Reaload)
ajax saving (GENERAL)
collect all values from form -> converting them to parameters -> sending them to script (NO Reaload)
my problme is, that the FCK editor is working with an inner copy of the main textarea, and copies its content from the inner component to the main textarea only by submiting
by pressing the save button, a form submit function is called, i getted to obey it by
function doSave(){
alert('Saved!');
return false;
}
function FCKeditor_OnComplete( editorInstance ){
editorInstance.LinkedField.form.onsubmit = doSave;
}
this dont submit the form, but also leaves the main textarea element empty (i get th edefault content, not the edited one)
(the script copies the real edited HTML to the main textarea only by submiting) and also
i cannot access the current content of the edited HTML
thank you for help:)
submit (Reaload)
ajax saving (GENERAL)
collect all values from form -> converting them to parameters -> sending them to script (NO Reaload)
my problme is, that the FCK editor is working with an inner copy of the main textarea, and copies its content from the inner component to the main textarea only by submiting
by pressing the save button, a form submit function is called, i getted to obey it by
function doSave(){
alert('Saved!');
return false;
}
function FCKeditor_OnComplete( editorInstance ){
editorInstance.LinkedField.form.onsubmit = doSave;
}
this dont submit the form, but also leaves the main textarea element empty (i get th edefault content, not the edited one)
(the script copies the real edited HTML to the main textarea only by submiting) and also
i cannot access the current content of the edited HTML
thank you for help:)
RE: AJAX saving problem
function getFCKRealContent() {
var FCK = FCKeditorAPI.GetInstance("FCK_Content");
strValue = FCK.GetXHTML()
return strValue;
}
RE: AJAX saving problem
perhaps my ajaxPost plugin is interesting for you?
personal page and demo for the plugin: http://www.saulmade.nl/FCKeditor/FCKPlugins.php
plugin and download page at sourceforge: http://sourceforge.net/tracker/index.ph ... tid=737639
forumThread: http://sourceforge.net/forum/forum.php? ... _id=257179