|
|
|
@ -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) {
|
|
|
|
|