UNPKG

@veltdev/tiptap-velt-comments

Version:

Tiptap Extension to add Google Docs-style overlay comments to your Tiptap editor. Works with the Velt Collaboration SDK.

18 lines (17 loc) 633 B
import { Editor, Mark } from '@tiptap/core'; export interface TiptapVeltCommentConfig { context?: any; } export declare const addTiptapVeltComment: (editor: Editor, config?: TiptapVeltCommentConfig) => void; export interface TiptapVeltCommentsOptions { HTMLAttributes: Record<string, any>; } declare module '@tiptap/core' { interface Commands<ReturnType> { tiptapVeltComments: { setVeltComment: (annotationId?: string, multiThreadAnnotationId?: string) => ReturnType; }; } } export declare const TiptapVeltComments: Mark<TiptapVeltCommentsOptions, any>; export default TiptapVeltComments;