@blocknote/core
Version:
A "Notion-style" block-based extensible text editor built on top of Prosemirror and Tiptap.
13 lines (11 loc) • 381 B
text/typescript
import { redoCommand, undoCommand, yUndoPlugin } from "y-prosemirror";
import { createExtension } from "../../editor/BlockNoteExtension.js";
export const YUndoExtension = createExtension(() => {
return {
key: "yUndo",
prosemirrorPlugins: [yUndoPlugin()],
dependsOn: ["yCursor", "ySync"],
undoCommand: undoCommand,
redoCommand: redoCommand,
} as const;
});