enable history plugin
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
847a3731f9
commit
cd505ab677
2 changed files with 5 additions and 4 deletions
|
@ -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,
|
||||
],
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue