index.d.ts 998 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
/**
 * @description 段落行高 LineHeight
 * @author lichunlin
 *
 */
import DropListMenu from '../menu-constructors/DropListMenu';
import Editor from '../../editor/index';
import { MenuActive } from '../menu-constructors/Menu';
declare class LineHeight extends DropListMenu implements MenuActive {
    constructor(editor: Editor);
    /**
     * 执行命令
     * @param value value
     */
    command(value: string): void;
    /**
     * 遍历dom 获取祖父元素 直到contenteditable属性的div标签
     *
     */
    getDom(dom: HTMLElement): HTMLElement;
    /**
     * 执行 document.execCommand
     *
     */
    action(html_str: string, editor: Editor): void;
    /**
     * style 处理
     */
    styleProcessing(styleList: Array<string>): string;
    /**
     * 段落全选 比如:避免11变成111
     */
    setRange(startDom: Node, endDom: Node): void;
    /**
     * 尝试修改菜单激活状态
     */
    tryChangeActive(): void;
}
export default LineHeight;