UNPKG

textarea-pattern-handler

Version:

A TypeScript utility for handling textarea patterns and DOM manipulation

12 lines (11 loc) 735 B
export declare const createTextNode: (text: string) => Text; export declare const createSpaceNode: () => Text; export declare const createBRNode: () => HTMLBRElement; export declare const createEmptyTextNode: () => Text; export declare const createTagElement: (tagContent: string, tagId: string) => HTMLSpanElement; export declare const getCurrentSelection: () => Selection | null; export declare const createNewRange: (startNode: Node, startOffset?: number) => Range; export declare const setSelectionToRange: (range: Range) => void; export declare const cleanTextContent: (text: string) => string; export declare const cleanHtmlContent: (html: string) => string; export declare const removeTrailingBR: (box: HTMLDivElement) => void;