kommitters / editorjs-undo

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

Improve the behavior of the caret position in blocks of text type #271

Closed juliandsg0222 closed 1 week ago

juliandsg0222 commented 1 week ago

Context

Currently in the editorjs-undo refactoring, the caret position is being set at the end of the last modified block, the natural behavior should be that the caret position is restored in the place where the last change was made.

Objective