[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 12:13:58 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 | Keywords:
Focuses: javascript |
--------------------------+-----------------------------
When using `wp_editor()` on the front end with `media_buttons` enabled,
drag-and-drop functionality is broken. In terms of styling, `wp-
admin/css/edit.css` is not enqueued and therefore no styling is applied.
More critically, dragging a file to the editor results in an endless loop
of Javascript errors. presumably because a relevant script is not being
enqueued:
{{{
Uncaught TypeError: Object function ( item ) {
// loop through the array
for (var i = 0; i < this.length; i++){
// remove our item
if (item === this[i]) { this.splice(i, 1); }
}
} has no method 'toggle'
media-views.js?ver=3.9-beta2:3030
media.view.EditorUploader.media.View.extend.refresh media-
views.js?ver=3.9-beta2:3030
media.view.EditorUploader.media.View.extend.containerDragover media-
views.js?ver=3.9-beta2:3106
n.event.dispatch jquery.js?ver=1.11.0:3
n.event.add.r.handle jquery.js?ver=1.11.0:3
media.view.EditorUploader.media.View.extend.refresh media-
views.js?ver=3.9-beta2:3030
media.view.EditorUploader.media.View.extend.containerDragover media-
views.js?ver=3.9-beta2:3106
n.event.dispatch jquery.js?ver=1.11.0:3
n.event.add.r.handle
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27465>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list