[wp-trac] [WordPress Trac] #29442: when using multiple instance of wp_editor only the first instance displaying the mce_external_plugins

WordPress Trac noreply at wordpress.org
Sun Aug 31 18:32:43 UTC 2014


#29442: when using multiple instance of wp_editor only the first instance
displaying the mce_external_plugins
--------------------------+-----------------------------
 Reporter:  ygaradon      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Editor        |    Version:  3.9.2
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 hello,
 i using acf(Advanced Custom Field) for creating multiple instance of
 wysiwyg editor( it use the wp_editor ), but only the first editor are
 displaying the mce external plugins (wpeditimage, wpgallery... )

 i found that if i will comment out the line 649 in file wp-includes/class-
 wp-editor.php

 649: //if ( $first_run )
 650:     $mceInit = array_merge( self::$first_init, $mceInit );

 it's solve the problem and all the wp_editor instances are getting also
 the external plugins.

 thanks!

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29442>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list