feat:paste table element

This commit is contained in:
Hufe921
2023-02-03 17:31:28 +08:00
parent 0f46db1f8a
commit db51a27666
2 changed files with 55 additions and 2 deletions
+3 -1
View File
@@ -66,7 +66,9 @@ export class CursorAgent {
}
if (item.type === 'text/html' && isHTML) {
item.getAsString(htmlText => {
const elementList = getElementListByHTML(htmlText)
const elementList = getElementListByHTML(htmlText, {
innerWidth: this.draw.getOriginalInnerWidth()
})
this.draw.insertElementList(elementList)
})
}