fix:paste plain text in text control

This commit is contained in:
Hufe921
2022-07-24 21:51:35 +08:00
parent 70c5dda1d5
commit 3400c21323
+1 -3
View File
@@ -60,9 +60,7 @@ export class CursorAgent {
if (item.kind === 'string') { if (item.kind === 'string') {
if (item.type === 'text/plain' && !isHTML) { if (item.type === 'text/plain' && !isHTML) {
item.getAsString(plainText => { item.getAsString(plainText => {
this.draw.insertElementList([{ this.canvasEvent.input(plainText)
value: plainText
}])
}) })
} }
if (item.type === 'text/html' && isHTML) { if (item.type === 'text/html' && isHTML) {