cl-editor
cl-editor copied to clipboard
Incorrect undo on multiple instances
Hi there,
thank you for a great Svelte-ready component. I am testing out currently and using 2 editor instances on the same page. It works well generally but the undo function has a problem:
- make some changes in instance # 1
- make some changes in instance # 2
- click the Undo button on instance # 1
Undo works as expected on instance # 1, the problem is that it also undo the changes on instance # 2!
Looks like either the undo stack is shared between instances, or the undo event is passed to both instances.
Best regards