[wp-trac] [WordPress Trac] #20264: WP_Editor unexpected behavior/bug when used in widget

WordPress Trac wp-trac at lists.automattic.com
Wed Mar 21 17:47:54 UTC 2012


#20264: WP_Editor unexpected behavior/bug when used in widget
--------------------------+------------------------------
 Reporter:  niklasbr      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  TinyMCE       |     Version:  3.3.1
 Severity:  major         |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by azaozz):

 Unfortunately TinyMCE cannot be moved in the DOM once it's initialized.
 That makes it impossible to use wp_editor() directly in a widget.

 Was thinking to add another method to wp_editor() that would make it work
 in two steps:
 - first enqueue scripts and output the hidden html for the dialogs (all
 that goes at the bottom of the page),
 - second output the html around the editor and some JS to initialize it,
 leaving out the actual init call so it can be initialized on bemand.

 That would make it possible to add the editor with ajax too.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20264#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list