MDL-44834 editor_atto: Delegate change event to one editor
[moodle.git] / lib / editor / atto / yui / src / editor / js / editor.js
index ce5a2ef..2d09677 100755 (executable)
@@ -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;
     },