@wangeditor-next/yjs-for-react
Version:
React specific components/utils for wangeditor-next-yjs.
10 lines (9 loc) • 325 B
TypeScript
/**
* @description text -> html
* @author wangfupeng
*/
import { Text } from 'slate';
import { IDomEditor } from '../editor/interface';
import type { INodeToHtmlOptions } from './node2html';
declare function textToHtml(textNode: Text, editor: IDomEditor, _options?: INodeToHtmlOptions): string;
export default textToHtml;