elem-to-html.ts 344 B

123456789101112
  1. import { SlateElement } from '@wangeditor-next/editor'
  2. function processRecordToHtml(_elem: SlateElement, _childrenHtml: string): string {
  3. return `<span data-w-e-type="process-record" data-w-e-is-void data-w-e-is-inline>流程记录</span>`
  4. }
  5. const conf = {
  6. type: 'process-record',
  7. elemToHtml: processRecordToHtml
  8. }
  9. export default conf