Make WordPress Core


Ignore:
Timestamp:
09/22/2006 10:24:50 PM (20 years ago)
Author:
ryan
Message:

Tabbed editor fixes from skeltoac. #2829

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/general-template.php

    r4206 r4210  
    736736}
    737737
     738function user_can_richedit() {
     739        $can = true;
     740
     741        if ( 'true' != get_user_option('rich_editing') || preg_match('!opera[ /][2-8]|konqueror|safari!i', $_SERVER['HTTP_USER_AGENT']) )
     742                $can = false;
     743
     744        return apply_filters('user_can_richedit', $can);
     745}
     746
    738747function the_editor($content, $id = 'content', $prev_id = 'title') {
    739748        $rows = get_option('default_post_edit_rows');
    … …  
    748757                //      The following line moves the border so that the active button "attaches" to the toolbar. Only IE needs it.
    749758        ?>
    750         <!--[if IE]><style type="text/css">
     759        <style type="text/css">
    751760                #postdivrich table, #postdivrich #quicktags {border-top: none;}
    752761                #quicktags {border-bottom: none; padding-bottom: 2px; margin-bottom: -1px;}
    753762                #edButtons {border-bottom: 1px solid #ccc;}
    754         </style><![endif]-->
     763        </style>
    755764        <div id='edButtons' style='display:none;'>
    756765                <div class='zerosize'><input accesskey='e' type='button' onclick='switchEditors("<?php echo $id; ?>")' /></div>
Note: See TracChangeset for help on using the changeset viewer.