WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/21/2015 10:00:42 PM (4 years ago)
Author:
azaozz
Message:

Update the TinyMCE initialization:

  • Replace wp_htmledit_pre() and wp_richedit_pre() with format_for_editor().
  • Replace the 'htmledit_pre' and 'richedit_pre' filters with 'format_for_editor'.
  • Do not run the post content through wpautop() in PHP when the visual editor is default. Run the textarea content through the JS wpautop on initializing TinyMCE.
  • Simplify both editors initialization.
  • Improve setting of wpActiveEditor in Quicktags.
  • Improve editor.js, use tinymce.$ when possible.

See #32425.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/default-filters.php

    r32896 r32899  
    203203
    204204add_filter( 'http_request_host_is_external', 'allowed_http_request_hosts', 10, 2 );
     205
     206// Prepare the content for the Visual or Text editor
     207add_filter( 'the_editor_content', 'format_for_editor', 10, 2 );
    205208
    206209// Actions
Note: See TracChangeset for help on using the changeset viewer.