UNPKG

@vericus/slate-kit-history

Version:

plugin that group together history of selections to the next editing event on slate for undo/redo

9 lines 366 B
export default function handleRedo(editor) { if (!editor.hasRedo()) return; editor.redo(); if (editor.props.onRedo && typeof editor.props.onRedo === "function") { editor.props.onRedo(editor.operations.filter(function (operation) { return !!(operation && operation.type !== "set_value"); })); } } //# sourceMappingURL=handleRedo.js.map