[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 23:42:39 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):

 Replying to [comment:4 ader]:
 > Replying to [comment:3 needle]:
 > > Replying to [comment:2 ader]:
 > > > Hi, I've just reproduced it on 3.9-beta2 and everything works
 perfectly fine.
 > >
 > > Ignoring the JS error, did you see "Drop files to upload" underneath
 the TinyMCE editor? I have to enqueue `wp-admin/css/edit.css` for things
 to function correctly.
 >
 > Yes, I see it underneath. I can drag&drop to both underneath panel and
 using "Add media" button, and files upload correctly. Also I didn't get
 any JS errors. I've tested it on fresh WP install with Twenty Fourteen
 theme enabled.

 Sorry, what I wrote was ambiguous - what I meant to say was that seeing
 "Drop files to upload" is unexpected since admin screens with editors
 don't show it and it's only when `wp-admin/css/edit.css` has been enqueued
 that it disappears initially, as it presumably should.

 When files are dragged to the editor without enqueueing the css, there is
 no visible dropzone, but there is when it is enqueued. I'll upload
 screenshots, but you can test just by toggling:

 `wp_enqueue_style( 'wp_editor_edit_css', admin_url( 'css/edit.css' ) );`

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


More information about the wp-trac mailing list