mirror of
https://github.com/docmost/docmost.git
synced 2026-05-18 23:44:24 +08:00
feat: page history diff (#1891)
* Show actual history changes * V2 - WIP * feat: page history diff * fix: exclude content from history listing --------- Co-authored-by: Jason Norwood-Young <jason@10layer.com>
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import { Transform } from "@tiptap/pm/transform";
|
||||
import { Node } from "@tiptap/pm/model";
|
||||
|
||||
export function removeMarks(doc: Node) {
|
||||
const tr = new Transform(doc);
|
||||
tr.removeMark(0, doc.nodeSize - 2);
|
||||
return tr.doc;
|
||||
}
|
||||
Reference in New Issue
Block a user