|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
WYSIWYG Editor
Hi,
I want to edit an external html file with the WYSIWYG Editor by Mitch. Therefore I use the "src" attribute in iframe: <iframe id="iView" src="file.htm"></iframe> But this only loads an gives the <body> part of the file. I've tried to change iView.document.body.innerHTML to iView.documentHTML but this doesn't work: (undefined) I need the whole html code, because I want to modify meta information in the header and the document background color. Mehmet |
|
#2
|
|||
|
|||
|
Hi,
Unfortunately due to the way the MSHTML parser works with the WYSIWYG, you can't do that. This is one of the problems that the developers of www.webedpro.com faced. You have to use getElementByTagName, etc (all XML based function calls on the HTML DOM) to get the values into the iFrame. You could try setting the iView.document.src attribute or something similar, however I'm 99% sure that you have to manipulate the DOM of the WYSIWYG editor to do it.
__________________
i am cope. i drink coke. i am in hope.i am cope. i drink coke. i am in hope.i am cope. i drink coke. i am in hope. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > Programming Tools > WYSIWYG Editor |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|