feat: add page stats to page menu (#876)

This commit is contained in:
Philip Okugbe
2025-03-13 14:54:18 +00:00
committed by GitHub
parent f7a14e23cd
commit f45d9dc5a0
8 changed files with 111 additions and 7 deletions

View File

@ -71,6 +71,7 @@ import MentionView from "@/features/editor/components/mention/mention-view.tsx";
import i18n from "@/i18n.ts";
import { MarkdownClipboard } from "@/features/editor/extensions/markdown-clipboard.ts";
import EmojiCommand from "./emoji-command";
import { CharacterCount } from "@tiptap/extension-character-count";
const lowlight = createLowlight(common);
lowlight.register("mermaid", plaintext);
@ -211,6 +212,7 @@ export const mainExtensions = [
MarkdownClipboard.configure({
transformPastedText: true,
}),
CharacterCount
] as any;
type CollabExtensions = (provider: HocuspocusProvider, user: IUser) => any[];