[wp-trac] [WordPress Trac] #23591: Can't insert media into wp_editor() without quicktags and/or tinymce

WordPress Trac noreply at wordpress.org
Fri Feb 22 23:39:05 UTC 2013


#23591: Can't insert media into wp_editor() without quicktags and/or tinymce
-----------------------------+--------------------------
 Reporter:  trepmal          |       Type:  defect (bug)
   Status:  new              |   Priority:  normal
Milestone:  Awaiting Review  |  Component:  Media
  Version:  3.5.1            |   Severity:  normal
 Keywords:  needs-patch      |
-----------------------------+--------------------------
 If I set up an editor with no TinyMCE or Quicktags, I'm unable to insert
 any media.
 {{{
 $args = array(
         'tinymce' => false,
         'quicktags' => false,
         'textarea_rows' => 5,
 );
 wp_editor( '', 'test1', $args );
 }}}
 No js errors or anything. Media modal comes up, I can use it without any
 issue, but as soon as I click insert (be it single media or gallery),
 nothing happens.

 I have to enable tinymce and/or quicktags to get media insertion to work.

 Here's a simple plugin for testing:
 https://gist.github.com/trepmal/5016952

 I can replicate this in 3.5.1 and trunk, have not tested in anything
 older.

 I don't think this is a browser quirk, but just in case, I've tested and
 confirmed the issue in Firefox 19 and Chrome 25.0.1364.84 beta both on Mac
 10.8.2.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23591>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list