From 3400c21323be72a725cfea1f2befb294b07806cc Mon Sep 17 00:00:00 2001 From: Hufe921 Date: Sun, 24 Jul 2022 21:51:35 +0800 Subject: [PATCH] fix:paste plain text in text control --- src/editor/core/cursor/CursorAgent.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/editor/core/cursor/CursorAgent.ts b/src/editor/core/cursor/CursorAgent.ts index b4807a2..3bb5e4f 100644 --- a/src/editor/core/cursor/CursorAgent.ts +++ b/src/editor/core/cursor/CursorAgent.ts @@ -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) {