Hi i'm trying to change the value of the editor from another window.
The probleme is how to get access to the FCKEditor value in javascript ???
Could anybody help me ?
The probleme is how to get access to the FCKEditor value in javascript ???
Could anybody help me ?
RE: Changing FCKEditor value from another window
I used the following code to add HTML to fckeditor from a window popup that opened on the page with fckeditor...
opener.frames[0].objContent.DOM.body.innerHTML += variable;
the frames[0] thingy changes if you have multiple fckeditors on one page, 0 being the first, 1 being the second etc..
Hope that helps
RE: Changing FCKEditor value from another window
function DoInsertImage( myValue ) {
window.opener.frames[0].objContent.DOM.selection.clear() ;
window.opener.frames[0].objContent.DOM.selection.createRange().pasteHTML(myValue) ;
}
RE: Changing FCKEditor value from another window
"'parent.frameheader.txtCorpoMens.DOM.body' is null or not an object".
txtCorpoMens is the parameter int the constructor:
oFCKeditor = new FCKeditor('txtCorpoMens');
RE: Changing FCKEditor value from another window