From 0a41dc392c984553746b048290e1ae43f9fb67b5 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Mon, 23 Dec 2024 16:27:53 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/10049 --- app/src/protyle/render/av/blockAttr.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/src/protyle/render/av/blockAttr.ts b/app/src/protyle/render/av/blockAttr.ts index 6188102f8..f2f722868 100644 --- a/app/src/protyle/render/av/blockAttr.ts +++ b/app/src/protyle/render/av/blockAttr.ts @@ -412,6 +412,14 @@ class="fn__flex-1 fn__flex${["url", "text", "number", "email", "phone", "block"] } }; } + } else if (type === "block") { + value = { + block: { + content: item.value, + id: item.parentElement.dataset.blockId, + }, + isDetached: false + }; } fetchPost("/api/av/setAttributeViewBlockAttr", { avID: item.parentElement.dataset.avId,