|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
WYSIWYG HTML Editor
I have been trying to implement the editor that was presented in a turorial on this site. I am having trouble with the following section of code under IE5 (works under 6)
// Setup iframe for editing iView.document.designMode = 'On'; // Toggle view flag viewBasic = 2; // Show the table with the editor document.all.tblEditor.style.display = 'inline'; // Hide the table with the text area document.all.tblBasic.style.display = 'none'; // ***************** // Set the content of the iframe to the body of the textarea iView.document.body.innerHTML = document.all._bodyText.value; If i insert and alert function into the code before the line of *** then it works fine too..... It's all a bit confusing? I guess it has something to do with setting design mode (does this take some time to load?) Anyway, appreciate any helpful advice. |
|
#2
|
|||
|
|||
|
I.E 5 is a pain.
Try using an onLoad on the iFrame to call a function that sets: iView.document.designMode = 'On'; |
|
#3
|
|||
|
|||
|
There are several bugs in IE5 that will basically bugger up the editor, you should use a min of IE 5.5 (patched)
|
|
#4
|
|||
|
|||
|
Thanks....
Well, that's has given me a legitimate reason to stop getting frustrated with it. Thanks
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > Programming Tools > WYSIWYG HTML Editor |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|