From 2333dd86dcf8def32002c290ffa2079cf56b4b89 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sun, 8 Feb 2026 21:11:27 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/15128 --- app/src/protyle/util/insertHTML.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/protyle/util/insertHTML.ts b/app/src/protyle/util/insertHTML.ts index c9843a06e..a4580db97 100644 --- a/app/src/protyle/util/insertHTML.ts +++ b/app/src/protyle/util/insertHTML.ts @@ -188,7 +188,8 @@ const processAV = (range: Range, html: string, protyle: IProtyle, blockElement: break; } const cellValue = textJSON[i][j]; - const operations = await updateCellsValue(protyle, blockElement as HTMLElement, cellValue, [cellElement], columns, tempElement.content.children[i].outerHTML, true); + const operations = await updateCellsValue(protyle, blockElement as HTMLElement, cellValue, [cellElement], columns, + cellElement.getAttribute("data-dtype") === "mAsset" ? (tempElement.content.children[i * (j + 1) + j]?.outerHTML || "") : html, true); if (operations.doOperations.length > 0) { doOperations.push(...operations.doOperations); undoOperations.push(...operations.undoOperations);