From fa28d728b1f44f45609d5a2207fa7192ef780423 Mon Sep 17 00:00:00 2001 From: L-Sun Date: Sun, 12 May 2024 10:16:26 +0800 Subject: [PATCH] fix(edgeless): fix caption missing when paste image in edgeless mode (#7017) --- .../blocks/src/root-block/edgeless/controllers/clipboard.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/blocks/src/root-block/edgeless/controllers/clipboard.ts b/packages/blocks/src/root-block/edgeless/controllers/clipboard.ts index f0f331db2c06..dc91de1bc187 100644 --- a/packages/blocks/src/root-block/edgeless/controllers/clipboard.ts +++ b/packages/blocks/src/root-block/edgeless/controllers/clipboard.ts @@ -513,10 +513,11 @@ export class EdgelessClipboardController extends PageClipboard { oldToNewIdMap: Map ) { const imageIds = images.map(({ props, id }) => { - const { xywh, rotate, sourceId, size, width, height } = props; + const { xywh, rotate, sourceId, size, width, height, caption } = props; const imageId = this.host.service.addBlock( 'affine:image', { + caption, sourceId, xywh, rotate,