@wangeditor-next/core 6.3.0 → 6.4.1

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.
@@ -4,4 +4,5 @@
4
4
  */
5
5
  import coreCreateEditor from './create-editor';
6
6
  import coreCreateToolbar from './create-toolbar';
7
- export { coreCreateEditor, coreCreateToolbar };
7
+ import { htmlToContent } from './helper';
8
+ export { coreCreateEditor, coreCreateToolbar, htmlToContent };
@@ -3,7 +3,7 @@
3
3
  * @author wangfupeng
4
4
  */
5
5
  import ee from 'event-emitter';
6
- import { Ancestor, Editor, Element, Location, Node, NodeEntry } from 'slate';
6
+ import { Ancestor, Descendant, Editor, Element, Location, Node, NodeEntry } from 'slate';
7
7
  import { AlertType, IEditorConfig, IMenuConfig, ISingleMenuConfig } from '../config/interface';
8
8
  import { IPositionStyle } from '../menus/interface';
9
9
  import { DOMElement } from '../utils/dom';
@@ -46,6 +46,8 @@ export interface IDomEditor extends Editor {
46
46
  getParentNode: (node: Node) => Ancestor | null;
47
47
  isEmpty: () => boolean;
48
48
  clear: () => void;
49
+ /** Transform loaded content before Core binds node paths and renders the editor. */
50
+ transformInitialContent?: (content: Descendant[]) => Descendant[];
49
51
  dangerouslyInsertHtml: (html: string, isRecursive?: boolean) => void;
50
52
  setHtml: (html: string) => void;
51
53
  id: string;