UNPKG

wangeditor

Version:

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

27 lines (22 loc) 637 B
import Editor from '../../../editor' import { DomElement } from '../../../utils/dom-core' import SelectionRangeElem from '../SelectionRangeElem' export type HandlerListOptions = { editor: Editor listType: string listTarget: string $selectionElem: DomElement $startElem: DomElement $endElem: DomElement } export interface Exec { exec: Function } export class ListHandle { public options: HandlerListOptions public selectionRangeElem: SelectionRangeElem constructor(options: HandlerListOptions) { this.options = options this.selectionRangeElem = new SelectionRangeElem() } }