Typography extension for Tiptap that automatically converts common text input patterns into proper typographic characters.
73
A utility for managing text selections in a rich text editor. The module should provide functionality to programmatically control text selection, cursor positioning, and focus state.
@generates
import { Editor } from '@tiptap/core';
/**
* Selects a range of text in the editor
* @param editor - The Tiptap editor instance
* @param from - Start position of the selection
* @param to - End position of the selection
*/
export function selectRange(editor: Editor, from: number, to: number): void;
/**
* Sets the cursor to a specific position
* @param editor - The Tiptap editor instance
* @param position - The position where the cursor should be placed
*/
export function selectPosition(editor: Editor, position: number): void;
/**
* Selects all content in the editor
* @param editor - The Tiptap editor instance
*/
export function selectAll(editor: Editor): void;
/**
* Brings focus to the editor
* @param editor - The Tiptap editor instance
*/
export function focusEditor(editor: Editor): void;
/**
* Removes focus from the editor
* @param editor - The Tiptap editor instance
*/
export function blurEditor(editor: Editor): void;Provides the core editor functionality and selection management APIs.
@satisfied-by
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