greetings -
everything is working great and i'm very impressed with fckeditor . the post works great as part of the sample form.
in our application, the contents of the fckeditor window are being submitted via javascript, and i can't figure out how to
get the contents of the data that is normally sent via a traditional post, into my local javascript variable (which is then
going to be submitted via XMLHTTPRequest()).
I have tried using the object reference passed when to "new", and checked the innerHTML property but that blank.
i want avoid parsing the DOM for the object if I can...
thx!
-kn
Tue, 07/31/2007 - 21:34
#1
Re: getting contents of user input to do custom javascript submi
var oEditor = FCKeditorAPI.GetInstance('FCKeditor_psBasic') ;
alert( oEditor.GetXHTML( true )) ;
Take a look at HTML Example 8 and you will see other useful methods as well.
MD