WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/02/11 08:10:23 (3 years ago)
Author:
azaozz
Message:

HTML mode for Distraction Free Writing, props koopersmith, see #17136

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/post.php

    r17695 r17785  
    16481648    $mce_options = rtrim( trim($mce_options), '\n\r,' ); 
    16491649 
    1650     wp_print_scripts('editor'); ?> 
     1650    do_action('before_wp_tiny_mce', $initArray); ?> 
    16511651 
    16521652<script type="text/javascript"> 
     
    16891689<?php 
    16901690 
    1691 do_action('tiny_mce_preload_dialogs', $plugins); 
     1691do_action('after_wp_tiny_mce', $initArray); 
    16921692} 
    16931693 
    16941694// Load additional inline scripts based on active plugins. 
    1695 function wp_preload_dialogs($plugins) { 
     1695function wp_preload_dialogs($init) { 
     1696    $plugins = (array) $init['plugins']; 
    16961697 
    16971698    if ( in_array( 'wpdialogs', $plugins, true ) ) { 
     
    17171718 
    17181719function wp_quicktags() { 
    1719     wp_preload_dialogs( array( 'wpdialogs', 'wplink', 'wp_fullscreen' ) ); 
     1720    wp_preload_dialogs( array( 'plugins' => array( 'wpdialogs', 'wplink', 'wpfullscreen' ) ) ); 
     1721} 
     1722 
     1723function wp_print_editor_js() { 
     1724    wp_print_scripts('editor'); 
    17201725} 
    17211726 
     
    17261731    $width = $width + 10; // compensate for the padding 
    17271732    $save = $post->post_status == 'publish' ? __('Update') : __('Save'); 
    1728 ?>  
     1733?> 
    17291734<div id="wp-fullscreen-body"> 
    17301735<div id="fullscreen-topbar" class="fade-600"> 
     
    17321737        <span id="wp-fullscreen-saved"> </span> 
    17331738        <span class="autosave-message">&nbsp;</span> 
    1734         <span id="wp-fullscreen-last-edit"> </span>  
     1739        <span id="wp-fullscreen-last-edit"> </span> 
    17351740    </div> 
    17361741 
    17371742    <div id="wp-fullscreen-toolbar"> 
     1743 
    17381744        <div id="wp-fullscreen-close"><a href="#" onclick="fullscreen.off();return false;"><?php _e('Back'); ?></a></div> 
    1739         <div id="wp-fullscreen-save"><input type="button" class="button-primary" value="<?php echo $save; ?>" onclick="fullscreen.save();" /></div> 
    1740         <div id="wp-fullscreen-buttons" style="width:<?php echo $width; ?>px;" class="wp_themeSkin"> 
     1745        <div id="wp-fullscreen-save"> 
     1746            <span><?php if ( $post->post_status == 'publish' ) _e('Updated.'); else _e('Saved.'); ?></span> 
     1747            <img src="images/wpspin_light.gif" alt="" /> 
     1748            <input type="button" class="button-primary" value="<?php echo $save; ?>" onclick="fullscreen.save();" /> 
     1749        </div> 
     1750        <div id="wp-fullscreen-central-toolbar" style="width:<?php echo $width; ?>px;"> 
     1751 
     1752        <div id="wp-fullscreen-mode-bar"><div id="wp-fullscreen-modes"> 
     1753            <a href="#" onclick="fullscreen.switchmode('tinymce');return false;"><?php _e('Visual'); ?></a> 
     1754            <a href="#" onclick="fullscreen.switchmode('html');return false;"><?php _e('HTML'); ?></a> 
     1755        </div></div> 
     1756 
     1757        <div id="wp-fullscreen-button-bar"><div id="wp-fullscreen-buttons" class="wp_themeSkin"> 
    17411758            <div> 
    17421759            <a title="<?php _e('Bold (Ctrl + B)'); ?>" aria-labelledby="wp_fs_bold_voice" onclick="fullscreen.b();return false;" class="mceButton mceButtonEnabled mce_bold" href="javascript:;" id="wp_fs_bold" role="button" tabindex="-1" aria-pressed="false"> 
     
    17751792            </div> 
    17761793 
    1777             <div> 
     1794            <div class="wp-fullscreen-both"> 
    17781795            <a title="<?php _e('Insert/edit image (Alt + Shift + M)'); ?>" aria-labelledby="wp_fs_image_voice" onclick="jQuery('#add_image').click();return false;" class="mceButton mceButtonEnabled mce_image" href="javascript:;" id="wp_fs_image" role="button" tabindex="-1"> 
    17791796            <span class="mceIcon mce_image"></span> 
     
    17821799            </div> 
    17831800 
    1784             <div> 
     1801            <div class="wp-fullscreen-both"> 
    17851802            <span tabindex="-1" aria-orientation="vertical" role="separator" class="mceSeparator"></span> 
    17861803            </div> 
    17871804 
    1788             <div> 
     1805            <div class="wp-fullscreen-both"> 
    17891806            <a title="<?php _e('Insert/edit link (Alt + Shift + A)'); ?>" aria-labelledby="wp_fs_link_voice" onclick="fullscreen.link();return false;" class="mceButton mce_link mceButtonEnabled" href="javascript:;" id="wp_fs_link" role="button" tabindex="-1" aria-pressed="false"> 
    17901807            <span class="mceIcon mce_link"></span> 
     
    17991816            </a> 
    18001817            </div> 
    1801  
    1802             <div id="wp-fullscreen-count"><?php _e('Word Count:'); ?> <span class="word-count">0</span></div> 
     1818        </div></div> 
     1819 
     1820        <div id="wp-fullscreen-count"><?php _e('Word Count:'); ?> <span class="word-count">0</span></div> 
    18031821        </div> 
     1822 
    18041823    </div> 
    18051824</div> 
Note: See TracChangeset for help on using the changeset viewer.