@wangeditor-next/editor 6.2.0 → 6.4.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.
@@ -8,6 +8,7 @@ declare class CodeBlockMenu implements IButtonMenu {
8
8
  readonly iconSvg = "<svg viewBox=\"0 0 1280 1024\"><path d=\"M832 736l96 96 320-320L928 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224zM701.312 150.528l69.472 18.944-192 704.032-69.472-18.944 192-704.032z\"></path></svg>";
9
9
  readonly tag = "button";
10
10
  private getSelectCodeElem;
11
+ private getSelectedTableCellBlock;
11
12
  /**
12
13
  * 获取语言类型
13
14
  * @param editor editor
@@ -12,6 +12,7 @@ declare class EditLinkMenu implements IModalMenu {
12
12
  readonly showModal = true;
13
13
  readonly modalWidth = 300;
14
14
  private $content;
15
+ private textInputId;
15
16
  private urlInputId;
16
17
  private buttonId;
17
18
  private getSelectedLinkElem;
@@ -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;