@blocknote/core
Version:
A "Notion-style" block-based extensible text editor built on top of Prosemirror and Tiptap.
12 lines (10 loc) • 317 B
text/typescript
import { history, redo, undo } from "@tiptap/pm/history";
import { createExtension } from "../../editor/BlockNoteExtension.js";
export const HistoryExtension = createExtension(() => {
return {
key: "history",
prosemirrorPlugins: [history()],
undoCommand: undo,
redoCommand: redo,
} as const;
});