// TipTap extension wrapping the slash-menu suggestion plugin. "use client"; import { Extension } from "@tiptap/core"; import Suggestion from "@tiptap/suggestion"; import { slashSuggestion } from "./slashSuggestion"; export const SlashExtension = Extension.create({ name: "slashMenu", addProseMirrorPlugins() { return [ Suggestion({ editor: this.editor, ...slashSuggestion, }), ]; }, });