@wangeditor-kai/yjs-for-react
Version:
React specific components/utils for wangeditor-next-yjs.
20 lines (19 loc) • 696 B
TypeScript
/**
* @description parse elem html
* @author wangfupeng
*/
import { IDomEditor } from '@wangeditor-next/core';
import { Descendant } from 'slate';
import { DOMElement } from '../utils/dom';
import { ListItemElement } from './custom-types';
declare function parseItemHtml(elem: DOMElement, children: Descendant[], editor: IDomEditor): ListItemElement;
export declare const parseItemHtmlConf: {
selector: string;
parseElemHtml: typeof parseItemHtml;
};
declare function parseListHtml(_elem: DOMElement, children: Descendant[], _editor: IDomEditor): ListItemElement[];
export declare const parseListHtmlConf: {
selector: string;
parseElemHtml: typeof parseListHtml;
};
export {};