[wp-trac] [WordPress Trac] #28403: Multiple wp_editor's with different settings

WordPress Trac noreply at wordpress.org
Wed Oct 1 14:05:56 UTC 2014


#28403: Multiple wp_editor's with different settings
--------------------------+------------------------------
 Reporter:  madeinua      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Editor        |     Version:  3.9.1
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+------------------------------
Changes (by marcochiesi):

 * keywords:   => has-patch


Comment:

 I encountered this same bug today (on 4.0). The editor content filters
 should be removed after the editor is displayed, so that they will not
 affect the following instances.

 This can be fixed by adding the following at the end of the "editor"
 method
 {{{
         remove_filter('the_editor_content', 'wp_htmledit_pre');
         remove_filter('the_editor_content', 'wp_richedit_pre');
 }}}

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


More information about the wp-trac mailing list