I'd like to be able to navigate through the content of the editor and manipulate it - say resize all the images. I know I can use the getXHTML to get the source, however, it would be much better if I could get a DOM object representing the content. Is this possible? Thanks.
Mon, 09/12/2005 - 11:37
#1
RE: getDOM?
document.frames(sFCKInstanceName + "___Frame").document.frames("eEditorArea").document
I'm using version 2.0 FC.
RE: getDOM?
Where the attribute of 'GetInstance' is the name of your FCKeditor.
This should work, e.g. alert(FCKeditorAPI.GetInstance('FCKeditor').EditorDocument.body.innerHTML);
RE: getDOM?
thank you guys, this is very helpful.
Y.Chaouche