[wp-trac] [WordPress Trac] #27880: Drag and Drop Media prevents Drag and Drop Text

WordPress Trac noreply at wordpress.org
Sat Apr 19 23:19:37 UTC 2014


#27880: Drag and Drop Media prevents Drag and Drop Text
--------------------------+--------------------
 Reporter:  Ipstenu       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.9.1
Component:  Editor        |     Version:  3.9
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+--------------------

Comment (by azaozz):

 Not sure if another filter is needed there. If you want to disable
 drag/drop uploading from a plugin, this should do it:

 {{{
 add_action( 'after_wp_tiny_mce', 'my_disable_ddupload' );
 function my_disable_ddupload() {
         ?>
         <script>
         if ( typeof tinyMCEPreInit !== 'undefined' ) {
                 delete tinyMCEPreInit.dragDropUpload;
         }
         </script>
         <?php
 }
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27880#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list