import type { Editor } from '@tiptap/react' export const isMarkInSchema = (markName: string, editor: Editor | null): boolean => { if (!editor?.schema) return false return editor.schema.spec.marks.get(markName) !== undefined }