When placing the editor in the page, you give it an "instance name". To retrieve it, you must simply call the FCKeditorAPI.GetInstance method.
var oEditor = FCKeditorAPI.GetInstance('InstanceName') ;
...where 'InstanceName' is the ID value to set the ww:wwWebFckEditor to.
then... to set or do anything you ever wanted... oEditor dot gets you there with hundereds of methods, events and properties exposed.
in my case of wanting to dynamiclly set the editor text value after the page was loaded, I issued the following:
oEditor.SetHTML('this is a test of the new value I want to edit')
Here is a link that helped me find these answers:
http://docs.cksource.com/FCKeditor_2.x/Developers_Guide/JavaScript_API
Still have not found a complete reference manual but enjoying this morning discovery!<g>
--hm
I have placed an FckEditor control on a ModalDialog control. The modal dialog pops up with the show() command and everything looks fine.
I noticed the ID and NAME attributes of the TEXTAREA element now include the modal dialog name in a prefix... myModalDialog_FckEditor
So far all good...
Now I want to alter the value of hte text through a callback. Using the following
$('#myModalDialog_FckEditor').val('some text I fetched from the callback');
...which should work but the display value of hte editor does not change?
I also tried creating
var oEditor = new document.getElementById('myModalDialog_FckEditor');
oEditor.value = 'some new text';
and this failed as well.
Any ideas what might be wrong?
--hm