Open Steve-Mcl opened 5 years ago
codemirror is exposed
if your easymde instance is myMDE
myMDE.codemirror gives you all your codemirror stuff.
I got
TypeError: can't access property "attach", next is undefined
defineOptions codemirror.js:7725
operation codemirror.js:3925
setOption codemirror.js:8229
bindingEvents index.vue:116
initialize index.vue:96
mounted index.vue:58
when trying to execute this.easymde.setOption('keyMap', 'vim')
.
(using in combination with this vue plugin - could be a problem on their side)
Is there a way to set a keyMap on the underlying codemirrior editor?
Example using sublime mapping https://codemirror.net/demo/sublime.html
If you check the source of that demo, you'll see keymap is set at instantiation time...
... other sources show you can also call CodeMirror.setOption with "keyMap" or addKeyMap
However, If I include
/keymap/sublime.js
in my html, I get an error due toCodeMirror
not being exposed byEasyMDE
Thanks for any support or advice you can offer.