@wangeditor-next/editor 5.6.0 → 5.6.2-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,8 @@
2
2
  * @description Editor View class
3
3
  * @author wangfupeng
4
4
  */
5
- import { IDomEditor, IEditorConfig, IToolbarConfig, IModuleConf, IRegisterMenuConf, IRenderElemConf, RenderStyleFnType, IElemToHtmlConf, styleToHtmlFnType, IPreParseHtmlConf, ParseStyleHtmlFnType, IParseElemHtmlConf } from '@wangeditor-next/core';
5
+ import { IDomEditor, IEditorConfig, IElemToHtmlConf, IModuleConf, IParseElemHtmlConf, IPreParseHtmlConf, IRegisterMenuConf, IRenderElemConf, IToolbarConfig, ParseStyleHtmlFnType, RenderStyleFnType, styleToHtmlFnType } from '@wangeditor-next/core';
6
+ import { ISingleMenuConfig } from 'packages/core/src/config/interface';
6
7
  type PluginType = <T extends IDomEditor>(editor: T) => T;
7
8
  declare class Boot {
8
9
  constructor();
@@ -16,9 +17,7 @@ declare class Boot {
16
17
  static setSimpleToolbarConfig(newConfig?: Partial<IToolbarConfig>): void;
17
18
  static plugins: PluginType[];
18
19
  static registerPlugin(plugin: PluginType): void;
19
- static registerMenu(menuConf: IRegisterMenuConf, customConfig?: {
20
- [key: string]: any;
21
- }): void;
20
+ static registerMenu(menuConf: IRegisterMenuConf, customConfig?: ISingleMenuConfig): void;
22
21
  static registerRenderElem(renderElemConf: IRenderElemConf): void;
23
22
  static registerRenderStyle(fn: RenderStyleFnType): void;
24
23
  static registerElemToHtml(elemToHtmlConf: IElemToHtmlConf): void;