@gdyfe/ssml
Version:
57 lines (56 loc) • 1.8 kB
TypeScript
import { type IDomEditor } from '@wangeditor/editor';
/**
* 获取当前编辑器实例
*/
declare function getEditor(): IDomEditor | undefined;
/**
* 获取当前SSML内容
*/
declare function getSSML(): string;
/**
* 获取当前HTML内容
*/
declare function getHTML(): string;
/**
* 设置编辑器焦点
*/
declare function setFocus(): void;
/**
* 在光标位置插入动作标签
* @param name 动作名称
* @param tag 动作标签(可选)
* @returns 是否插入成功
*/
declare function insertAction(name: string, tag?: string): boolean;
declare const _default: import("vue").DefineComponent<{
modelValue: {
type: import("vue").PropType<string | undefined>;
required: true;
default: string;
};
}, {
getEditor: typeof getEditor;
getSSML: typeof getSSML;
getHTML: typeof getHTML;
setFocus: typeof setFocus;
insertAction: typeof insertAction;
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
created: (editor: IDomEditor) => void;
change: (editor: IDomEditor) => void;
'update:modelValue': (ssml: string) => void;
mounted: (editor: IDomEditor) => void;
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
modelValue: {
type: import("vue").PropType<string | undefined>;
required: true;
default: string;
};
}>> & {
onCreated?: ((editor: IDomEditor) => any) | undefined;
onChange?: ((editor: IDomEditor) => any) | undefined;
"onUpdate:modelValue"?: ((ssml: string) => any) | undefined;
onMounted?: ((editor: IDomEditor) => any) | undefined;
}, {
modelValue: string | undefined;
}, {}>;
export default _default;