kommitters / editorjs-undo

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

Implement the remove core function #262

Closed keliumJU closed 2 weeks ago

keliumJU commented 2 weeks ago

Context

The next step in the refactoring of editorjs-undo it is necessary to create a remove function that allows us to eliminate a block, for this we will use the delete function of the API editorjs blocks, taking into account the possible secondary effects that it can bring in the list of blocks like the displacement of the blocks from the bottom to the top from the eliminated element. For more info about the function check:

https://editorjs.io/blocks/#delete

Objective