Typography extension for Tiptap that automatically converts common text input patterns into proper typographic characters.
73
Build a rich text editor that accepts file uploads through drag-and-drop and paste operations, with custom processing for different file types.
@generates
/**
* Creates and configures a Tiptap editor with file handling capabilities.
*
* @param element - The DOM element to mount the editor
* @param uploadFile - Async function that uploads a file and returns its URL
* @returns The configured editor instance
*/
export function createFileHandlingEditor(
element: HTMLElement,
uploadFile: (file: File) => Promise<string>
): Editor;
/**
* Uploads a file to the mock endpoint.
*
* @param file - The file to upload
* @returns Promise resolving to the file URL
*/
export function mockUploadFile(file: File): Promise<string>;Provides the core editor functionality and extension system.
Provides basic editor extensions (Document, Paragraph, Text, etc.).
Provides image node support for displaying uploaded images.
Provides file drop and paste event handling capabilities.
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