UNPKG

@vericus/slate-kit-history

Version:

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

10 lines 353 B
export default function hasRedo(editor, value) { var redos = value ? value.data.get("redos") : editor.value.data.get("redos"); return !(redos && redos .filter(function (redo) { return !(redo.size === 1 && redo.get(0).type === "set_selection"); }) .isEmpty()); } //# sourceMappingURL=hasRedo.js.map