The next step in the refactoring of editorjs-undo it is necessary to create a replace function that allows us to replace data in the same block, for this we will use the update function of the API editorjs blocks, for more info about the function check:
Context
The next step in the refactoring of editorjs-undo it is necessary to create a
replace
function that allows us to replace data in the same block, for this we will use theupdate
function of the API editorjs blocks, for more info about the function check:https://editorjs.io/blocks/#update
Objective
replace
core function in theHistoryManager
class.