UNPKG

@blocknote/core

Version:

A "Notion-style" block-based extensible text editor built on top of Prosemirror and Tiptap.

18 lines (14 loc) 358 B
import { yUndoPlugin } from "y-prosemirror"; import { BlockNoteExtension } from "../../editor/BlockNoteExtension.js"; export class UndoPlugin extends BlockNoteExtension { public static key() { return "yUndoPlugin"; } constructor() { super(); this.addProsemirrorPlugin(yUndoPlugin()); } public get priority() { return 1000; } }