@wangeditor-kai/editor 5.6.41 → 5.6.42
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,9 +2,9 @@
|
|
|
2
2
|
* @description parse html
|
|
3
3
|
* @author wangfupeng
|
|
4
4
|
*/
|
|
5
|
-
import {
|
|
6
|
-
import { Element as SlateElement, Descendant } from 'slate';
|
|
5
|
+
import { Descendant, Element as SlateElement } from 'slate';
|
|
7
6
|
import { IDomEditor } from '../editor/interface';
|
|
7
|
+
import { DOMElement } from '../utils/dom';
|
|
8
8
|
export declare const TEXT_TAGS: string[];
|
|
9
9
|
export type PreParseHtmlFnType = ($node: DOMElement) => DOMElement;
|
|
10
10
|
export interface IPreParseHtmlConf {
|
|
@@ -5,11 +5,5 @@
|
|
|
5
5
|
import { Dom7Array } from 'dom7';
|
|
6
6
|
import { Descendant } from 'slate';
|
|
7
7
|
import { IDomEditor } from '../editor/interface';
|
|
8
|
-
|
|
9
|
-
* 处理 DOM Elem html
|
|
10
|
-
* @param $elem $elem
|
|
11
|
-
* @param editor editor
|
|
12
|
-
* @returns slate Descendant
|
|
13
|
-
*/
|
|
14
|
-
declare function parseElemHtml($elem: Dom7Array, editor: IDomEditor): Descendant | Descendant[];
|
|
8
|
+
declare function parseElemHtml($elem: Dom7Array, editor: IDomEditor, inheritedMarks?: Record<string, any>, inheritedNonText?: Record<string, any>): Descendant | Descendant[];
|
|
15
9
|
export default parseElemHtml;
|