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.

23 lines (22 loc) 785 B
/** * Core extension module. * * Purpose: Extension factory that wires everything together. * This is the ONLY place where Mark.create() is called. * * Key responsibilities: * - Create Mark extension * - Wire up transaction handler to updateContent feature * - Register editor in registry on extension creation * - Expose commands and storage * * Dependencies: adapters/host/marks.ts, features/updateContent.ts, core/registry.ts */ import { Mark } from '@tiptap/core'; import type { VeltCommentsExtensionConfig } from '@/types/host'; /** * Creates the Mark extension. * This is the main extension that integrates Velt comments with the editor. */ export declare const VeltCommentsExtension: Mark<VeltCommentsExtensionConfig, any>; export default VeltCommentsExtension;