UNPKG

@wangeditor-next/editor

Version:
15 lines (14 loc) 488 B
/** * @description parse html * @author wangfupeng */ import { IDomEditor } from '@wangeditor-next/core'; import { Descendant } from 'slate'; import { DOMElement } from '../../utils/dom'; import { ParagraphElement } from './custom-types'; declare function parseParagraphHtml(elem: DOMElement, children: Descendant[], editor: IDomEditor): ParagraphElement; export declare const parseParagraphHtmlConf: { selector: string; parseElemHtml: typeof parseParagraphHtml; }; export {};