Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/14886

Vanessadfbd697ab5ab
diff --git a/app/src/protyle/render/av/openMenuPanel.ts b/app/src/protyle/render/av/openMenuPanel.ts
index c76d24c083..a7ba04a304 100644
--- a/app/src/protyle/render/av/openMenuPanel.ts
+++ b/app/src/protyle/render/av/openMenuPanel.ts
@@ -309,7 +309,7 @@ export const openMenuPanel = (options: {
}
const replaceValue: IAVCellAssetValue[] = [];
Array.from(targetElement.parentElement.children).forEach((item: HTMLElement) => {
- if (item.dataset.content) {
+ if (["image", "file"].includes(item.dataset.type)) {
replaceValue.push({
content: item.dataset.content,
name: item.dataset.name,