
Damon
Staff
/ Moderator

May 23, 2006, 2:40 PM
Post #1 of 2
(8163 views)
Shortcut
|
|
Fix for Internet Explorer rendering bug - third line in editor appears blank
|
Can't Post
|
|
Here are the steps to fix an Internet Explorer rendering bug the makes the third line in the WYSIWYG editor appear blank on load. Download your _interface.html template (/templates/interface/_interface.html) and find this line: // -------------------------------------------------------------------------- // code to run // -------------------------------------------------------------------------- Above it, add these lines of code so it looks like this: // -------------------------------------------------------------------------- // Function : fixDisappearedContent // Description : BUGFIX (May 23, 2006) // Internet Explorer issue: third line appears blank in editor box. // -------------------------------------------------------------------------- function fixDisappearedContent() { if (navigator.appName.indexOf('Microsoft')==-1) return; for (var i=0;i<oUtil.arrEditor.length;i++) { var wysiwyg=eval("idContent"+oUtil.arrEditor[i]); wysiwyg.document.execCommand("SelectAll", false, null); wysiwyg.document.execCommand("UnSelect", false, null); } } // -------------------------------------------------------------------------- // code to run // -------------------------------------------------------------------------- Then, update the body tag to look like this: <body bgcolor="$_ui_bgcolor$" marginwidth=0 marginheight=15 leftmargin=0 onload="fixDisappearedContent()"> Save and upload to your site. That's it. You can also download the latest version of Article Manager (which includes this updated template) here: http://www.interactivetools.com/upgrade/ --------------------------------------------------- Cheers Damon Edis interactivetools.com Hire me! Save time by getting our experts to help with your project. http://www.interactivetools.com/consulting/
(This post was edited by Theo on May 23, 2006, 2:56 PM)
|