Ionaru / easy-markdown-editor

EasyMDE: A simple, beautiful, and embeddable JavaScript Markdown editor. Delightful editing for beginners and experts alike. Features built-in autosaving and spell checking.
https://stackblitz.com/edit/easymde
MIT License
2.46k stars 320 forks source link

Want to use vim keymap in easy mde. #593

Open polodev opened 5 months ago

polodev commented 5 months ago

Require to add vim KeyMap

easymde.codemirror.setOption('keyMap', 'vim'); 

getting following error

Uncaught TypeError: Cannot read properties of undefined (reading 'call')
    at Zo (easymde.min.js:7:128459)
    at easymde.min.js:7:138057
    at da (easymde.min.js:7:138084)
    at ca (easymde.min.js:7:137852)
    at easymde.min.js:7:140370
    at Ma.ba (easymde.min.js:7:140594)
    at HTMLDivElement.<anonymous> (easymde.min.js:7:80947)Understand this error
easymde.min.js:7 

Is there any way I can Use Easy Markdown Editor with vim keybindings

BrandonDyer64 commented 2 months ago

Did you include the keymap/vim.js file as mentioned in the CodeMirror docs?