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.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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user