From c693745cbe823192add9238d526d9d97a49b502f Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 26 Feb 2008 07:15:59 +0000 Subject: [PATCH] Editor style fixes for IE6 from mt and azaozz. fixes #6004 git-svn-id: https://develop.svn.wordpress.org/trunk@7034 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/css/ie.css | 17 +++++++++++++++++ wp-admin/js/editor.js | 15 +++++++++++---- 2 files changed, 28 insertions(+), 4 deletions(-) diff --git a/wp-admin/css/ie.css b/wp-admin/css/ie.css index 756832cd9a..92f65d1b12 100644 --- a/wp-admin/css/ie.css +++ b/wp-admin/css/ie.css @@ -21,3 +21,20 @@ display: block; position: relative; } + +#wpwrap, #wpcontent, #post, #wrap, #postdivrich, #postdiv, #poststuff, #editorcantainer { +display: block; +zoom: 100%; +} + +* html #editorcontainer { +padding: 0; +} + +* html #editorcontainer #content { +position: relative; +overflow: auto; +padding: 6px; +margin: auto; +width: 98%; +} diff --git a/wp-admin/js/editor.js b/wp-admin/js/editor.js index bcd67480c2..336f506123 100644 --- a/wp-admin/js/editor.js +++ b/wp-admin/js/editor.js @@ -91,11 +91,18 @@ switchEditors = { ed.hide(); ta.value = this.pre_wpautop(ta.value); - ta.style.width = '100%'; - qt.style.display = 'block'; - ec.style.padding = '6px'; - ta.style.color = ''; + + if ( tinymce.isIE6 ) { + ta.style.width = '98%'; + ec.style.padding = '0px'; + ta.style.padding = '6px'; + } else { + ta.style.width = '100%'; + ec.style.padding = '6px'; + } + + ta.style.color = ''; this.wpSetDefaultEditor( 'html' ); }