kommitters / editorjs-undo

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

Undo operation malfunctions when there are line breaks #227

Closed juanmagiraldor closed 8 months ago

juanmagiraldor commented 9 months ago

Precheck

Description

In the editor, there appears to be a visual error where, when performing an undo operation with specific steps, the saved data does not match what is displayed on the screen.

Steps to reproduce:

Environment

Current behavior

Include code samples, errors, and stack traces if appropriate. If reporting a bug, please include the reproducing steps.

Expected behavior

When performing an undo while positioned at the first letter of the second paragraph, it is expected that this letter should be deleted.

Additional context

Add any other context about the problem here.

MarioRodriguezS commented 8 months ago

@juanmagiraldor Thanks a lot for reporting the issue, it was solved and it was available in v2.0.24. Please let us know if this solution proves helpful to you.