[wp-trac] [WordPress Trac] #32425: Update WP_Editors and TinyMCE initialization

WordPress Trac noreply at wordpress.org
Sun Jun 21 22:00:44 UTC 2015


#32425: Update WP_Editors and TinyMCE initialization
-------------------------+------------------
 Reporter:  azaozz       |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  4.3
Component:  TinyMCE      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+------------------

Comment (by azaozz):

 In [changeset:"32899"]:
 {{{
 #!CommitTicketReference repository="" revision="32899"
 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.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32425#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list