cl-editor icon indicating copy to clipboard operation
cl-editor copied to clipboard

Incorrect undo on multiple instances

Open weeblr opened this issue 4 years ago • 0 comments

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

weeblr avatar Oct 20 '21 12:10 weeblr