MDL-44834 editor_atto: Delegate change event to one editor
This commit is contained in:
+1
-1
@@ -257,7 +257,7 @@ Y.extend(Editor, Y.Base, {
|
||||
prefix: 'atto'
|
||||
});
|
||||
|
||||
Y.delegate(['mouseup', 'keyup', 'focus'], this._hasSelectionChanged, document.body, '.' + CSS.CONTENT, this);
|
||||
Y.delegate(['mouseup', 'keyup', 'focus'], this._hasSelectionChanged, document.body, '#' + this.editor.get('id'), this);
|
||||
|
||||
return this;
|
||||
},
|
||||
|
||||
+2
-2
File diff suppressed because one or more lines are too long
+1
-1
@@ -255,7 +255,7 @@ Y.extend(Editor, Y.Base, {
|
||||
prefix: 'atto'
|
||||
});
|
||||
|
||||
Y.delegate(['mouseup', 'keyup', 'focus'], this._hasSelectionChanged, document.body, '.' + CSS.CONTENT, this);
|
||||
Y.delegate(['mouseup', 'keyup', 'focus'], this._hasSelectionChanged, document.body, '#' + this.editor.get('id'), this);
|
||||
|
||||
return this;
|
||||
},
|
||||
|
||||
+1
-1
@@ -255,7 +255,7 @@ Y.extend(Editor, Y.Base, {
|
||||
prefix: 'atto'
|
||||
});
|
||||
|
||||
Y.delegate(['mouseup', 'keyup', 'focus'], this._hasSelectionChanged, document.body, '.' + CSS.CONTENT, this);
|
||||
Y.delegate(['mouseup', 'keyup', 'focus'], this._hasSelectionChanged, document.body, '#' + this.editor.get('id'), this);
|
||||
|
||||
return this;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user