mirror of
https://github.com/yudaocode/yudao-ui-admin-vue3.git
synced 2026-03-30 04:57:55 +00:00
22 lines
511 B
TypeScript
22 lines
511 B
TypeScript
import { DOMElement } from './utils/dom'
|
||
import { IDomEditor, SlateDescendant, SlateElement } from '@wangeditor/editor'
|
||
|
||
function parseHtml(
|
||
_elem: DOMElement,
|
||
_children: SlateDescendant[],
|
||
_editor: IDomEditor
|
||
): SlateElement {
|
||
return {
|
||
// TODO @lesan:这里有个红色告警,可以去掉哇?
|
||
type: 'process-record',
|
||
children: [{ text: '' }]
|
||
}
|
||
}
|
||
|
||
const parseHtmlConf = {
|
||
selector: 'span[data-w-e-type="process-record"]',
|
||
parseElemHtml: parseHtml
|
||
}
|
||
|
||
export default parseHtmlConf
|