Add some docs to wp.media.view.EditorUploader
.
Props ericlewis. See #29951. Built from https://develop.svn.wordpress.org/trunk@30234 git-svn-id: http://core.svn.wordpress.org/trunk@30234 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d21ea0a251
commit
8fa0755584
@ -3880,6 +3880,9 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Creates a dropzone on WP editor instances (elements with .wp-editor-wrap
|
||||||
|
* or #wp-fullscreen-body) and relays drag'n'dropped files to a media workflow.
|
||||||
|
*
|
||||||
* wp.media.view.EditorUploader
|
* wp.media.view.EditorUploader
|
||||||
*
|
*
|
||||||
* @class
|
* @class
|
||||||
@ -3897,6 +3900,9 @@
|
|||||||
overDropzone: false,
|
overDropzone: false,
|
||||||
draggingFile: null,
|
draggingFile: null,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Bind drag'n'drop events to callbacks.
|
||||||
|
*/
|
||||||
initialize: function() {
|
initialize: function() {
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
||||||
@ -3927,6 +3933,11 @@
|
|||||||
return this;
|
return this;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Check browser support for drag'n'drop.
|
||||||
|
*
|
||||||
|
* @return Boolean
|
||||||
|
*/
|
||||||
browserSupport: function() {
|
browserSupport: function() {
|
||||||
var supports = false, div = document.createElement('div');
|
var supports = false, div = document.createElement('div');
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.1-alpha-30233';
|
$wp_version = '4.1-alpha-30234';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user