new EditorUploader()
Creates a dropzone on WP editor instances (elements with .wp-editor-wrap)
and relays drag'n'dropped files to a media workflow.
wp.media.view.EditorUploader
- Source:
Extends
- wp.media.View
- wp.Backbone.View
- Backbone.View
Methods
-
addFiles()
-
Add the files to the uploader.
- Source:
-
browserSupport()
-
Check browser support for drag'n'drop.
- Source:
Returns:
- Type
- Boolean
-
dispose()
-
- Inherited From:
- Source:
- To Do:
-
- The internal comment mentions this might have been a stop-gap before Backbone 0.9.8 came out. Figure out if Backbone core takes care of this in Backbone.View now.
Returns:
Returns itself to allow chaining.- Type
- wp.media.View
-
drop(event)
-
When a file is dropped on the editor uploader, open up an editor media workflow and upload the file immediately.
Parameters:
Name Type Description event
jQuery.Event The 'drop' event. - Source:
-
initialize()
-
Bind drag'n'drop events to callbacks.
- Source:
-
remove()
-
- Inherited From:
- Source:
Returns:
Returns itself to allow chaining.- Type
- wp.media.View