Make WordPress Core

Changeset 21218


Ignore:
Timestamp:
07/05/2012 08:28:01 PM (13 years ago)
Author:
azaozz
Message:

Clarify that 'html' refers to the Text editor tab, see #20993

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/js/editor.dev.js

    r20679 r21218  
    88    },
    99
    10     go: function(id, mode) { // mode can be 'html', 'tmce', or 'toggle'
     10    go: function(id, mode) { // mode can be 'html', 'tmce', or 'toggle'; 'html' is used for the "Text" editor tab.
    1111        id = id || 'content';
    1212        mode = mode || 'toggle';
  • trunk/wp-includes/class-wp-editor.php

    r21212 r21218  
    7777            $switch_class = 'html-active';
    7878
     79            // 'html' and 'switch-html' are used for the "Text" editor tab.
    7980            if ( 'html' == wp_default_editor() ) {
    8081                add_filter('the_editor_content', 'wp_htmledit_pre');
  • trunk/wp-includes/general-template.php

    r20990 r21218  
    17681768 *
    17691769 * Works out which of the two editors to display as the current editor for a
    1770  * user.
     1770 * user. The 'html' setting is for the "Text" editor tab.
    17711771 *
    17721772 * @since 2.5.0
Note: See TracChangeset for help on using the changeset viewer.