Make WordPress Core


Ignore:
Timestamp:
02/24/2008 02:04:11 AM (17 years ago)
Author:
ryan
Message:

Specify min width on pages that use TinyMCE. Props azaozz. fixes #5975

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-header.php

    r6950 r6996  
    55    if ( user_can_richedit() )
    66        wp_enqueue_script( 'wp_tiny_mce' );
     7}
     8
     9$min_width_pages = array( 'post.php', 'post-new.php', 'page.php', 'page-new.php', 'widgets.php', 'comment.php' );
     10$the_current_page = preg_replace('|^.*/wp-admin/|i', '', $_SERVER['PHP_SELF']);
     11$ie6_no_scrollbar = true;
     12
     13function add_minwidth($c) {
     14    return $c . 'minwidth ';
     15}
     16
     17if ( in_array( $the_current_page, $min_width_pages ) ) {
     18        $ie6_no_scrollbar = false;
     19        add_filter( 'admin_body_class', 'add_minwidth' );
    720}
    821
     
    2740addLoadEvent=(function(){var e=[],t,s,n,i,o,d=document,w=window,r='readyState',c='onreadystatechange',x=function(){n=1;clearInterval(t);while(i=e.shift())i();if(s)s[c]=''};return function(f){if(n)return f();if(!e[0]){d.addEventListener&&d.addEventListener("DOMContentLoaded",x,false);/*@cc_on@*//*@if(@_win32)d.write("<script id=__ie_onload defer src=//0><\/scr"+"ipt>");s=d.getElementById("__ie_onload");s[c]=function(){s[r]=="complete"&&x()};/*@end@*/if(/WebKit/i.test(navigator.userAgent))t=setInterval(function(){/loaded|complete/.test(d[r])&&x()},10);o=w.onload;w.onload=function(){x();o&&o()}}e.push(f)}})();//]]>
    2841</script>
    29 <?php if ( ($parent_file != 'link-manager.php') && ($parent_file != 'options-general.php') ) : ?>
     42<?php if ( ($parent_file != 'link-manager.php') && ($parent_file != 'options-general.php') && $ie6_no_scrollbar ) : ?>
    3043<style type="text/css">* html { overflow-x: hidden; }</style>
    3144<?php endif;
Note: See TracChangeset for help on using the changeset viewer.