UNPKG

vditor

Version:

♏ 易于使用的 Markdown 编辑器,为适配不同的应用场景而生

15 lines (14 loc) 737 B
export declare const getEditorRange: (vditor: IVditor) => Range; export declare const getCursorPosition: (editor: HTMLElement) => { left: number; top: number; }; export declare const selectIsEditor: (editor: HTMLElement, range?: Range) => boolean; export declare const setSelectionFocus: (range: Range) => void; export declare const getSelectPosition: (selectElement: HTMLElement, editorElement: HTMLElement, range?: Range) => { end: number; start: number; }; export declare const setSelectionByPosition: (start: number, end: number, editor: HTMLElement) => Range; export declare const setRangeByWbr: (element: HTMLElement, range: Range) => void; export declare const insertHTML: (html: string, vditor: IVditor) => void;