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 { EditorView } from "prosemirror-view";
|
||||||
import { dropCursor } from "prosemirror-dropcursor";
|
import { dropCursor } from "prosemirror-dropcursor";
|
||||||
import { gapCursor } from "prosemirror-gapcursor";
|
import { gapCursor } from "prosemirror-gapcursor";
|
||||||
|
import { history } from "prosemirror-history";
|
||||||
import type { XmlFragment } from "yjs";
|
import type { XmlFragment } from "yjs";
|
||||||
import { ySyncPlugin, yUndoPlugin } from "y-prosemirror";
|
import { ySyncPlugin } from "y-prosemirror";
|
||||||
|
|
||||||
import "./editor.css";
|
import "./editor.css";
|
||||||
|
|
||||||
|
@ -45,10 +46,10 @@
|
||||||
dropCursor(),
|
dropCursor(),
|
||||||
gapCursor(),
|
gapCursor(),
|
||||||
//menubar(schema),
|
//menubar(schema),
|
||||||
// history(),
|
history(),
|
||||||
ySyncPlugin(doc),
|
ySyncPlugin(doc),
|
||||||
// yCursorPlugin(doc.webrtcProvider.awareness),
|
// yCursorPlugin(doc.webrtcProvider.awareness),
|
||||||
yUndoPlugin(),
|
// yUndoPlugin(),
|
||||||
keymap(baseKeymap),
|
keymap(baseKeymap),
|
||||||
// placeholderPlugin,
|
// placeholderPlugin,
|
||||||
],
|
],
|
||||||
|
|
|
@ -14,7 +14,7 @@ import {
|
||||||
selectNodeForward,
|
selectNodeForward,
|
||||||
splitBlock,
|
splitBlock,
|
||||||
} from "prosemirror-commands";
|
} from "prosemirror-commands";
|
||||||
import { undo, redo } from "y-prosemirror";
|
import { undo, redo } from "prosemirror-history";
|
||||||
import {
|
import {
|
||||||
splitListItem,
|
splitListItem,
|
||||||
liftListItem,
|
liftListItem,
|
||||||
|
|
Loading…
Reference in a new issue