edtr-io / edtr-io

Edtr.io is an open source WYSIWYG in-line web editor written in React. Its plugin architecture makes Edtr.io lean and extensive at the same time.

Home Page:https://edtr.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

after using replace back button results in error

elbotho opened this issue · comments

commented

In our custom table plugin we use replace on a ChildStateType to switch a cell from a text plugin to a image plugin.
Right after the switch using the history undo action results in "Error: There exists no document with the given id" and all data is lost.

Good catch, there's something wrong with child.replace and the history stack. It also doesn't work correctly in multimedia-explanation, although it doesn't crash the app. I'll look into it.

commented

Thank you!
The credit for the catch goes to our new test group.