MDL-44834 editor_atto: Delegate change event to one editor

This commit is contained in:
Frederic Massart
2014-03-27 19:48:37 +08:00
parent 3c87c0880e
commit 5ce4583a46
4 changed files with 5 additions and 5 deletions
@@ -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;
},
File diff suppressed because one or more lines are too long
@@ -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
View File
@@ -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;
},