UNPKG

@wangeditor-kai/yjs-for-react

Version:

React specific components/utils for wangeditor-next-yjs.

20 lines (19 loc) 689 B
/** * @description parse html * @author wangfupeng */ import { IDomEditor } from '@wangeditor-next/core'; import { Descendant } from 'slate'; import { DOMElement } from '../../utils/dom'; import { CodeElement, PreElement } from './custom-types'; declare function parseCodeHtml(elem: DOMElement, _children: Descendant[], _editor: IDomEditor): CodeElement; export declare const parseCodeHtmlConf: { selector: string; parseElemHtml: typeof parseCodeHtml; }; declare function parsePreHtml(elem: DOMElement, children: Descendant[], _editor: IDomEditor): PreElement; export declare const parsePreHtmlConf: { selector: string; parseElemHtml: typeof parsePreHtml; }; export {};