/** * @description insert code-block menu * @author wangfupeng */ import { IButtonMenu, IDomEditor } from '@wangeditor-next/core'; declare class CodeBlockMenu implements IButtonMenu { readonly title: string; readonly iconSvg = ""; readonly tag = "button"; private getSelectCodeElem; /** * 获取语言类型 * @param editor editor */ getValue(editor: IDomEditor): string | boolean; isActive(editor: IDomEditor): boolean; isDisabled(editor: IDomEditor): boolean; exec(editor: IDomEditor, value: string | boolean): void; private changeToPlainText; private changeToCodeBlock; } export default CodeBlockMenu;