Merge branch 'MDL-48973_28' of https://github.com/pauln/moodle into MOODLE_28_STABLE
This commit is contained in:
+15
@@ -299,6 +299,21 @@ Y.extend(Editor, Y.Base, {
|
||||
setupAutomaticPolling: function() {
|
||||
this._registerEventHandle(this.editor.on(['keyup', 'paste', 'cut'], this.updateOriginal, this));
|
||||
|
||||
// Call this.updateOriginal after dropped content has been processed.
|
||||
this._registerEventHandle(this.editor.on('drop', this.updateOriginalDelayed, this));
|
||||
|
||||
return this;
|
||||
},
|
||||
|
||||
/**
|
||||
* Calls updateOriginal on a short timer to allow native event handlers to run first.
|
||||
*
|
||||
* @method updateOriginalDelayed
|
||||
* @chainable
|
||||
*/
|
||||
updateOriginalDelayed: function() {
|
||||
Y.soon(Y.bind(this.updateOriginal, this));
|
||||
|
||||
return this;
|
||||
},
|
||||
|
||||
|
||||
+3
-3
File diff suppressed because one or more lines are too long
+15
@@ -297,6 +297,21 @@ Y.extend(Editor, Y.Base, {
|
||||
setupAutomaticPolling: function() {
|
||||
this._registerEventHandle(this.editor.on(['keyup', 'paste', 'cut'], this.updateOriginal, this));
|
||||
|
||||
// Call this.updateOriginal after dropped content has been processed.
|
||||
this._registerEventHandle(this.editor.on('drop', this.updateOriginalDelayed, this));
|
||||
|
||||
return this;
|
||||
},
|
||||
|
||||
/**
|
||||
* Calls updateOriginal on a short timer to allow native event handlers to run first.
|
||||
*
|
||||
* @method updateOriginalDelayed
|
||||
* @chainable
|
||||
*/
|
||||
updateOriginalDelayed: function() {
|
||||
Y.soon(Y.bind(this.updateOriginal, this));
|
||||
|
||||
return this;
|
||||
},
|
||||
|
||||
|
||||
+15
@@ -297,6 +297,21 @@ Y.extend(Editor, Y.Base, {
|
||||
setupAutomaticPolling: function() {
|
||||
this._registerEventHandle(this.editor.on(['keyup', 'paste', 'cut'], this.updateOriginal, this));
|
||||
|
||||
// Call this.updateOriginal after dropped content has been processed.
|
||||
this._registerEventHandle(this.editor.on('drop', this.updateOriginalDelayed, this));
|
||||
|
||||
return this;
|
||||
},
|
||||
|
||||
/**
|
||||
* Calls updateOriginal on a short timer to allow native event handlers to run first.
|
||||
*
|
||||
* @method updateOriginalDelayed
|
||||
* @chainable
|
||||
*/
|
||||
updateOriginalDelayed: function() {
|
||||
Y.soon(Y.bind(this.updateOriginal, this));
|
||||
|
||||
return this;
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user