Please support more event
Ray-Eldath opened this issue · 2 comments
Ray-Eldath commented
Still want this to support more events listed in CodeMirror doc... :-(
cnu4 commented
you can register events just like CodeMirror doc mentioned by getting CodeMirror instance
// get CodeMirror instance
const editor = this.$refs.myEditor.editor;
// register events that listed in CodeMirror doc
this.$refs.myEditor.editor.on('beforeChange', () => {})
Ray-Eldath commented
thx!