[wp-trac] [WordPress Trac] #27465: Drag and drop files into the Visual Editor broken when used on front end

WordPress Trac noreply at wordpress.org
Thu Mar 20 13:42:28 UTC 2014


#27465: Drag and drop files into the Visual Editor broken when used on front end
--------------------------+------------------------------
 Reporter:  needle        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  TinyMCE       |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  javascript
--------------------------+------------------------------

Comment (by needle):

 On further investigation, it seems I've somewhat misrepresented the JS
 error. I am adding a utility function to the Array object which produces
 the error mentioned in the ticket:

 {{{
 Array.prototype.remove_item = function( item ) {
         for (var i = 0; i < this.length; i++){
                 if (item === this[i]) { this.splice(i, 1); }
         }
 }
 }}}

 This is a common approach and it seems odd for the drag-and-drop code to
 trigger an error as a result, but it is not strictly an error in WP core.

 However, my report concerning the inclusion of `wp-admin/css/edit/css`
 still stands.

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


More information about the wp-trac mailing list