MDL-47943 editor_atto: Save selection on mouseleave for Chrome
This commit is contained in:
+1
-1
@@ -1058,7 +1058,7 @@ EditorSelection.prototype = {
|
||||
this.updateOriginal();
|
||||
}, this);
|
||||
|
||||
Y.delegate(['keyup', 'focus'], function(e) {
|
||||
Y.delegate(['keyup', 'focus', 'mouseleave'], function(e) {
|
||||
Y.soon(Y.bind(this._hasSelectionChanged, this, e));
|
||||
}, document.body, '#' + this.editor.get('id'), this);
|
||||
|
||||
|
||||
+2
-2
File diff suppressed because one or more lines are too long
+1
-1
@@ -1053,7 +1053,7 @@ EditorSelection.prototype = {
|
||||
this.updateOriginal();
|
||||
}, this);
|
||||
|
||||
Y.delegate(['keyup', 'focus'], function(e) {
|
||||
Y.delegate(['keyup', 'focus', 'mouseleave'], function(e) {
|
||||
Y.soon(Y.bind(this._hasSelectionChanged, this, e));
|
||||
}, document.body, '#' + this.editor.get('id'), this);
|
||||
|
||||
|
||||
+1
-1
@@ -90,7 +90,7 @@ EditorSelection.prototype = {
|
||||
this.updateOriginal();
|
||||
}, this);
|
||||
|
||||
Y.delegate(['keyup', 'focus'], function(e) {
|
||||
Y.delegate(['keyup', 'focus', 'mouseleave'], function(e) {
|
||||
Y.soon(Y.bind(this._hasSelectionChanged, this, e));
|
||||
}, document.body, '#' + this.editor.get('id'), this);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user