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

WordPress Trac noreply at wordpress.org
Sat Feb 23 00:12:17 UTC 2013


#23591: Can't insert media into wp_editor() without quicktags and/or tinymce
--------------------------+------------------------------
 Reporter:  trepmal       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:  3.5.1
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |
--------------------------+------------------------------

Comment (by trepmal):

 [https://twitter.com/bradyvercher/status/305104289133645824 Someone on
 twitter] showed me the trick to fix this
 {{{
 <script type="text/javascript">
 jQuery(function($) {
         $(document.body).on( 'click', '.insert-media', function( event ) {
                 wpActiveEditor = $(this).data('editor');
         });
 });
 </script>
 }}}
 I'm sure somebody with better js chops can make a nice patch.

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


More information about the wp-trac mailing list