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:
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 thedelete
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
remove
core function in theHistoryManager
class.