I have my FCKEditor working great using the supplied ASP instructions but I am trying to figure out how to, in Javascript, update the FCKEditor client side.
Seems simple but I have tried everything. I tried calling the FCKeditorAPI.__Instances and setting value, innerHTML, anything but nothing I do will change the contents (mouse-click for example). Am I missing something obvious? I can of course use the .GetXHTML() fine of course to pull out but what about putting into it?
My end result is tying the form into some AJAX/Web 2.0 to dynamically update some session variables on a review page w/out having to go to the form.
Thanks in advance!
Seems simple but I have tried everything. I tried calling the FCKeditorAPI.__Instances and setting value, innerHTML, anything but nothing I do will change the contents (mouse-click for example). Am I missing something obvious? I can of course use the .GetXHTML() fine of course to pull out but what about putting into it?
My end result is tying the form into some AJAX/Web 2.0 to dynamically update some session variables on a review page w/out having to go to the form.
Thanks in advance!
RE: updating FCKEditor contents in Javascript
RE: updating FCKEditor contents in Javascript
I tried doing this:
FCKeditorAPI.__Instances['DESCRIPTION'].SetHTML = "test";
Nothing goes in.
The thing I am assuming is since I am creating the object in ASP and not creating a JS object I cannot directly reference it but use the API call instead. Wild thing is I don't get an error it just doesn't change what is within the body of the richtext box.
Thanks for your reply!
RE: updating FCKEditor contents in Javascript
RE: updating FCKEditor contents in Javascript
.SetHTML(html, ForceWYSWYG);
Found it on all places, Wiki. d'oh!
Thanks for the direction Alfonso!
Chris