summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--public/js/lib/editor/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/public/js/lib/editor/index.js b/public/js/lib/editor/index.js
index a68092ff..dead0c40 100644
--- a/public/js/lib/editor/index.js
+++ b/public/js/lib/editor/index.js
@@ -127,7 +127,7 @@ export default class Editor {
}
this.editor.on(event, (...args) => {
- this.eventListeners[event].forEach(cb => cb(...args))
+ this.eventListeners[event].forEach(cb => cb.bind(this)(...args))
})
}