fix:paste plain text in text control
This commit is contained in:
@@ -60,9 +60,7 @@ export class CursorAgent {
|
||||
if (item.kind === 'string') {
|
||||
if (item.type === 'text/plain' && !isHTML) {
|
||||
item.getAsString(plainText => {
|
||||
this.draw.insertElementList([{
|
||||
value: plainText
|
||||
}])
|
||||
this.canvasEvent.input(plainText)
|
||||
})
|
||||
}
|
||||
if (item.type === 'text/html' && isHTML) {
|
||||
|
||||
Reference in New Issue
Block a user