Skip to content

Commit

Permalink
fix(edgeless): fix caption missing when paste image in edgeless mode (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
L-Sun committed May 12, 2024
1 parent 89fb3be commit fa28d72
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -513,10 +513,11 @@ export class EdgelessClipboardController extends PageClipboard {
oldToNewIdMap: Map<string, string>
) {
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,
Expand Down

0 comments on commit fa28d72

Please sign in to comment.