Make WordPress Core

Changeset 19239


Ignore:
Timestamp:
11/10/2011 05:46:23 PM (12 years ago)
Author:
azaozz
Message:

More phpdoc for wp_editor(), see #17144

Location:
trunk/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-wp-editor.php

    r19172 r19239  
    577577
    578578        jQuery('.wp-editor-wrap').mousedown(function(e){
    579             wpActiveEditor = this.id.slice(3, -5);
     579            wpActiveEditor = this.id.slice(3, -5);
    580580        });
    581581
  • trunk/wp-includes/general-template.php

    r19096 r19239  
    17341734
    17351735/**
    1736  * Loads and initializes WP_Editor class if needed, passes the settings for an instance of the editor
    1737  *
     1736 * Loads and initializes WP_Editor class (if needed), passes the settings for an instance of the editor
     1737 *
     1738 * Using this function is the proper way to output all needed components for both TinyMCE and Quicktags.
     1739 * WP_Editor shouldn't be instantiated separately as it keeps track of loaded scripts.
     1740 * See http://core.trac.wordpress.org/ticket/17144.
     1741 *
     1742 * NOTE: Once initialized the TinyMCE editor cannot be safely moved in the DOM. For that reason
     1743 * running wp_editor() inside of a metabox is not a good idea unless only Quicktags is used.
     1744 * On the post edit screen several actions can be used to include additional editors
     1745 * containing TinyMCE: 'edit_page_form', 'edit_form_advanced' and 'dbx_post_sidebar'.
     1746 * See http://core.trac.wordpress.org/ticket/19173 for more information.
     1747 *
    17381748 * @see wp-includes/class-wp-editor.php
    17391749 * @since 3.3
    17401750 *
    17411751 * @param string $content Initial content for the editor.
    1742  * @param string $editor_id HTML ID attribute value for the textarea and TinyMCE.
     1752 * @param string $editor_id HTML ID attribute value for the textarea and TinyMCE. Can only be /[a-z]+/.
    17431753 * @param array $settings See WP_Editor::editor().
    17441754 */
Note: See TracChangeset for help on using the changeset viewer.