enable history plugin
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Cat /dev/Nulo 2023-04-21 17:52:48 -03:00
parent 847a3731f9
commit cd505ab677
2 changed files with 5 additions and 4 deletions

View file

@ -4,8 +4,9 @@
import { EditorView } from "prosemirror-view";
import { dropCursor } from "prosemirror-dropcursor";
import { gapCursor } from "prosemirror-gapcursor";
import { history } from "prosemirror-history";
import type { XmlFragment } from "yjs";
import { ySyncPlugin, yUndoPlugin } from "y-prosemirror";
import { ySyncPlugin } from "y-prosemirror";
import "./editor.css";
@ -45,10 +46,10 @@
dropCursor(),
gapCursor(),
//menubar(schema),
// history(),
history(),
ySyncPlugin(doc),
// yCursorPlugin(doc.webrtcProvider.awareness),
yUndoPlugin(),
// yUndoPlugin(),
keymap(baseKeymap),
// placeholderPlugin,
],

View file

@ -14,7 +14,7 @@ import {
selectNodeForward,
splitBlock,
} from "prosemirror-commands";
import { undo, redo } from "y-prosemirror";
import { undo, redo } from "prosemirror-history";
import {
splitListItem,
liftListItem,