tessl install tessl/npm-tiptap--extension-typography@3.4.0Typography extension for Tiptap that automatically converts common text input patterns into proper typographic characters.
Agent Success
Agent success rate when using this tile
73%
Improvement
Agent success rate improvement when using this tile compared to baseline
0.86x
Baseline
Agent success rate without this tile
85%
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.