[wp-trac] [WordPress Trac] #19173: Issues with wp_editor() when used inside of a meta box.

WordPress Trac wp-trac at lists.automattic.com
Sun Nov 6 19:06:18 UTC 2011

#19173: Issues with wp_editor() when used inside of a meta box.
 Reporter:  goto10        |       Owner:  azaozz
     Type:  defect (bug)  |      Status:  reviewing
 Priority:  normal        |   Milestone:  3.3
Component:  Editor        |     Version:  3.3
 Severity:  normal        |  Resolution:
 Keywords:                |

Comment (by azaozz):

 The problem is that TinyMCE, once initialized cannot be moved in the DOM,
 or rather the browsers cannot handle it being moved. Moving the postbox
 triggers this. Some browsers/versions handle that better than others as
 @ocean90 mentions above but generally the editor textarea and iframe
 shouldn't be moved.

 As $goto10 mentions using `wp_editor()` would be quite common inside a
 postbox, so we will need to find an easy way to disable moving of that
 postbox (dragging it on the screen doesn't count as moving although it's
 very CPU intensive, re-inserting the parent element somewhere else in the
 DOM is the problem).

 Looks like we will need yet another arg on the postboxes to disallow
 moving but other suggestions are welcome.

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

More information about the wp-trac mailing list