Typography extension for Tiptap that automatically converts common text input patterns into proper typographic characters.
73
A utility that manages rich text document content with support for loading, replacing, and transforming document data.
@generates
/**
* Creates a document content manager
*/
export function createDocumentManager(): DocumentManager;
/**
* Document manager interface for managing rich text content
*/
export interface DocumentManager {
/**
* Loads document content from JSON format
* @param json - The JSON document data
*/
loadFromJSON(json: any): void;
/**
* Replaces the entire document with new content
* @param content - The new content (HTML string, JSON, or plain text)
* @param format - The format of the content ('html', 'json', or 'text')
*/
replaceContent(content: string | any, format: 'html' | 'json' | 'text'): void;
/**
* Clears all content from the document
*/
clearDocument(): void;
/**
* Exports the document to JSON format
* @returns The document as JSON
*/
exportToJSON(): any;
/**
* Exports the document to HTML format
* @returns The document as HTML string
*/
exportToHTML(): string;
/**
* Destroys the document manager and cleans up resources
*/
destroy(): void;
}Provides rich text editor functionality for managing document content.
Install with Tessl CLI
npx tessl i tessl/npm-tiptap--extension-typographydocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10