Open mokhosh opened 4 years ago
Here's a little pen: https://codepen.io/mokhosh/pen/MWeeRbq?editors=1001
Write something, leave the editor, see the console. Delete some characters, leave the editor, see the console again.
EasyMDE has no internal change
event, instead you should subscribe to the change
event of the exposed codemirror
instance.
const editor = new EasyMDE();
editor.codemirror.on('change', () => { /* do something */ });
I wish there was a way to work with native browser events, since many packages work with those out of the box.
Also, codemirror fires change
for what is called input
in javascript.
Describe the bug If you add something to the text the
change
event is raised, but if you only delete some characters it doesn't.Version information