Link extension for tiptap rich text editor providing automatic link detection, paste handling, click behavior, and XSS protection.
88
A rich text editor extension that automatically detects and converts various contact protocols into clickable links.
@generates
import { Editor } from '@tiptap/core';
/**
* Creates and configures a rich text editor with protocol support
* for mailto, tel, ftp, ftps, and sms links.
*
* @param element - The HTML element to mount the editor on
* @returns The configured Editor instance
*/
export function createContactEditor(element: HTMLElement): Editor;
/**
* Gets all links with non-HTTP protocols from the editor content.
*
* @param editor - The Editor instance
* @returns Array of objects containing link text, href, and protocol type
*/
export function getProtocolLinks(editor: Editor): Array<{
text: string;
href: string;
protocol: string;
}>;Provides link functionality with automatic detection and protocol support.
@satisfied-by
Core Tiptap editor framework.
@satisfied-by
Basic editor extensions for document structure.
@satisfied-by
Install with Tessl CLI
npx tessl i tessl/npm-tiptap--extension-linkdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10