jodit
jodit copied to clipboard
Undo/Redo buttons are disabling after custom button comman click/execution
Undo & redo buttons are disabling after custom button click. Issue might be history/observer is getting clear on custom button click.
Jodit Version: jodit-react: 1.3.39
Expected behavior: Expected the undo & redo buttons works after the custom button command execution
Actual behavior: Undo & redo buttons are disaling after the custom button command execution (plugin). So, I couldn't do undo/redo operations.
We don't use MutationObserver and you have to tell jodit that you changed something with editor.synchronizeValues()
Thank you for the response. Undo button is disabling after the setState() of method in class component. Sharing example of synchronizeValue() for this kind of issues is much appreciated.
Added information about sync https://xdsoft.net/jodit/docs/modules/plugin.html#buttons