kommitters / editorjs-undo

Undo/Redo feature for Editor.js
https://www.npmjs.com/package/editorjs-undo
MIT License
169 stars 51 forks source link

Uncaught TypeError: Cannot read properties of undefined (reading 'holder') bug fixed #179

Closed khanakia closed 1 year ago

khanakia commented 1 year ago

When there is the last element to undo editor.js throws an error because of empty state. Please refer to this issue https://github.com/codex-team/editor.js/issues/2090

https://user-images.githubusercontent.com/2174170/209190897-265a0e90-21db-4b08-bb25-0d768575d938.mov

khanakia commented 1 year ago

I have created this new pull request https://github.com/kommitters/editorjs-undo/pull/190 and i had to fixed the issue other way as after undoing all the element the cursor was not setting up so fixed that too

miguelnietoa commented 1 year ago

Closing in favor of #190

AstralBaby commented 1 year ago

The issue is still there