UNPKG

wangeditor

Version:

wangEditor - 轻量级 web 富文本编辑器,配置方便,使用简单,开源免费

27 lines (26 loc) 738 B
declare type SelectionRangeType = HTMLElement | ChildNode[]; declare type SetSelectionRangeType = SelectionRangeType | DocumentFragment; export declare type SelectionRangeElemType = SelectionRangeType | null; /** * @description 选区的 Element * @author tonghan */ declare class SelectionRangeElem { private _element; constructor(); /** * 设置 SelectionRangeElem 的值 * @param { SetSelectionRangeType } data */ set(data: SetSelectionRangeType): void; /** * 获取 SelectionRangeElem 的值 * @returns { SelectionRangeType } Elem */ get(): SelectionRangeElemType; /** * 清除 SelectionRangeElem 的值 */ clear(): void; } export default SelectionRangeElem;