We need to extend the base functionality of the UndoRedo plugin by adding functionality such as the ability to undo/restore formatting, style, and other cell elements we’ve implemented.
Now, I’m at a loss at the right way to approach this.
On one hand-- I can follow the New Plugin Guide and get started writing our own “UndoRedo” plugin. However, this feels like reinventing the wheel since a lot of great work has already been done.
On the other-- it doesn’t seem easy to simply enhance the existing plugin since it’s essentially “baked into” HandsOnTable itself.
I had considered creating my own plugin, and then copying in most of the logic from src/handsontable/plugins/UndoRedo
, but there are internal imports that make this difficult:
import Hooks from '../../pluginHooks';
import { arrayMap, arrayEach } from '../../helpers/array';
import { rangeEach } from '../../helpers/number';
import { inherit, deepClone } from '../../helpers/object';
import { align } from '../contextMenu/utils';
I’d appreciate any advice as to the best way to begin this endeavor.
Thanks in advance.
Adam