MDL-45682 editor_atto: Ensure that the current editor is active when saving selections
This commit is contained in:
committed by
Dan Poltawski
parent
e77b4ac0de
commit
fd4c7d7b69
+3
-1
@@ -1056,7 +1056,9 @@ EditorSelection.prototype = {
|
||||
* @method saveSelection
|
||||
*/
|
||||
saveSelection: function() {
|
||||
this._selections = this.getSelection();
|
||||
if (this.isActive()) {
|
||||
this._selections = this.getSelection();
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
+2
-2
File diff suppressed because one or more lines are too long
+3
-1
@@ -1051,7 +1051,9 @@ EditorSelection.prototype = {
|
||||
* @method saveSelection
|
||||
*/
|
||||
saveSelection: function() {
|
||||
this._selections = this.getSelection();
|
||||
if (this.isActive()) {
|
||||
this._selections = this.getSelection();
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
+3
-1
@@ -153,7 +153,9 @@ EditorSelection.prototype = {
|
||||
* @method saveSelection
|
||||
*/
|
||||
saveSelection: function() {
|
||||
this._selections = this.getSelection();
|
||||
if (this.isActive()) {
|
||||
this._selections = this.getSelection();
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user