feat:paste separator element
This commit is contained in:
@@ -165,6 +165,11 @@ export function getElementListByHTML(htmlText: string): IElement[] {
|
|||||||
url: aElement.href
|
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) {
|
} else if (node.nodeName === 'INPUT' && (<HTMLInputElement>node).type === ControlComponent.CHECKBOX) {
|
||||||
elementList.push({
|
elementList.push({
|
||||||
type: ElementType.CHECKBOX,
|
type: ElementType.CHECKBOX,
|
||||||
|
|||||||
Reference in New Issue
Block a user