Hello,
I have my FCKeditor opening using the jquery method.
Im having trouble getting the info out though.
I have other text inputs, text areas and hidden value in my form that are being passed through ok, but not sure how to get the fckeditor info out.
The data is being stored in a database from a backend using jquery and php.
Any thoughts?
Cheers
Rob
I have my FCKeditor opening using the jquery method.
Im having trouble getting the info out though.
I have other text inputs, text areas and hidden value in my form that are being passed through ok, but not sure how to get the fckeditor info out.
The data is being stored in a database from a backend using jquery and php.
Any thoughts?
Cheers
Rob
Re: Jquery, PHP
var oEditor = FCKeditorAPI.GetInstance ( "id of the form textarea" );
editorValue = oEditor.GetXHTML ( true );
I hope this is what you wanted
Re: Jquery, PHP
Using this, im able to get something passed through and into the database, but its not my text from the editor, its:
[object HTMLTextAreaElement]
I am getting this when im using the php based editor and also with the js based editor...
Any thoughts?
Re: Jquery, PHP
I used
Its now passing the content from fckeditor into my jquery and ready to be put into my MYSQL Database by PHP
Re: Jquery, PHP
Whats the difference between mine and yours code? i am glad i could help
Re: Jquery, PHP
var news_content = oEditor.GetXHTML ( true );
Im new to the whole javascript and jquery stuff, so im still grasping how to build the code properly
Thanks for your help though, it seemed to do the trick!