Link extension for tiptap rich text editor providing automatic link detection, paste handling, click behavior, and XSS protection.
88
Build a rich text editor with configurable link behavior. The editor should allow customization of how links behave when created, clicked, and pasted.
Create a function that initializes a text editor with customizable link handling. The editor configuration should support:
@generates
interface EditorConfig {
enableAutolink: boolean;
enableClickOpen: boolean;
enablePasteLink: boolean;
defaultLinkAttributes: {
target?: string;
rel?: string;
class?: string;
};
defaultProtocol: string;
}
/**
* Initializes a rich text editor with configured link behavior
* @param config - Configuration options for link behavior
* @returns An initialized editor instance
*/
export function createEditor(config: EditorConfig): any;Provides the base editor functionality for rich text editing.
@satisfied-by
Provides link functionality with configurable behavior for the editor.
@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