feat:paste separator element

This commit is contained in:
Hufe921
2023-02-01 17:37:16 +08:00
parent e37da11a79
commit 77d546f476
+5
View File
@@ -165,6 +165,11 @@ export function getElementListByHTML(htmlText: string): IElement[] {
url: aElement.href
})
}
} else if (node.nodeName === 'HR') {
elementList.push({
value: '\n',
type: ElementType.SEPARATOR,
})
} else if (node.nodeName === 'INPUT' && (<HTMLInputElement>node).type === ControlComponent.CHECKBOX) {
elementList.push({
type: ElementType.CHECKBOX,