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

WordPress Trac wp-trac at lists.automattic.com
Mon Nov 7 23:33:15 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 goto10):

 @azaozz
 > I think it would be nice to be able to add a meta box that is
 invisible.[[br]]

 >> Thinking more about that, not sure it's a good idea to have a static
 (non-movable) metabox in between the "normal" metaboxes.
 [[br]]
 Yes, you're right. Static boxes intermingled with traditional meta boxes
 would feel strange.

 Typically I have all of my form fields within various meta boxes, and I
 loop through the array of boxes/fields to show them (in order) on the
 appropriate post edit screen. I was trying to think of a way that editor
 fields could still be added by using the same call to add_meta_box()
 (albeit with an extra parameter for boxes containing an editor).

 Thanks for the heads up on the 'edit_page_form' and 'edit_form_advanced'
 hooks. These sound like good alternatives, though I do think it's
 important to be able to able place editors exactly where we want to. I
 guess I just want to have my cake and eat it too :)  Maybe your second
 proposal with saving editor content, destroying the editor, then
 recreating it would be better then.

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


More information about the wp-trac mailing list