feat:paste separator element

pr675
Hufe921 3 years ago
parent e37da11a79
commit 77d546f476

@ -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,

Loading…
Cancel
Save