createWeGlobalConfig
创建 wangEditor
编辑器的全局配置的 vue.use
注册函数。另见 全局注册。
import { Plugin } from 'vue'
declare function createWeGlobalConfig(config: WeGlobalConfig): Plugin
declare interface WeGlobalConfig {
opts?: Partial<WeOptions<false>>
attrs?: WeGlobalAttrs
formFieldInit?: WeFormFieldInit
}
declare interface WeGlobalAttrs {
editor?: Record<string, any>
toolbar?: Record<string, any>
editable?: Record<string, any>
}