I was trying to send the text using prototypejs and scriptaculous.
$oFCKeditor = new FCKeditor('richtext'); $oFCKeditor->BasePath = $root.'fckeditor/'; $oFCKeditor->ToolbarSet = 'MyToolbar'; $oFCKeditor->Value = $text; $oFCKeditor->Create();
Problem, even if I change the text in FCK's textarea, $_POST['richtext'] gives the original $text what was fetched from the database, and not the changed text.
Note: Similar issue found:
FCK with jQuery ajaxForm plugin - old data sent to server
Problem with passing values
Prototype Ajax.Updater Problem
fckEditor inside UpdatePanel broken in VS2008 beta2 They apparently found a solution for ASP, but I couldn't understand where to have this code for a php server.
private void Page_Load(object sender, EventArgs args) { Page.ClientScript.RegisterOnSubmitStatement( editor.GetType(), "editor", "FCKUpdateLinkedField('" + editor.ClientID + "');"); }
There is another solution I found posted here, but the solution is equally greek, where should I include the three lines of code?
var content = FCKeditorAPI.GetInstance('HiddenInputName'').GetXHTML(); FCKeditorAPI = null; __FCKeditorNS = null;
Re: prototypejs and fckeditor, not posting updated values
Then calling this function in the before callback of the ajax request.
Fckeditor 4.1, not passing editor value with ajax
i am using fck editor 4.1 fullversion. and trying to save editor data to mysql database using ajax post. sometimes it's working and sometimes it's does not working.
i am using this code for get data from editor.
var data = CKEDITOR.instances['editor1'].getData();
Please anybody help me.
Thanks in advance! :)
Fckeditor 4.1, not passing editor value with ajax
i am using fck editor 4.1 fullversion. and trying to save editor data to mysql database using ajax post. sometimes it's working and sometimes it's does not working.
i am using this code for get data from editor.
var data = CKEDITOR.instances['editor1'].getData();
Please anybody help me.
Thanks in advance! :)