You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
998 B
Plaintext

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

/**
* @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;