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/17704

Vanessab8db9381ae18
diff --git a/app/src/protyle/toolbar/index.ts b/app/src/protyle/toolbar/index.ts
index 78f814cb59..ccf0da562a 100644
--- a/app/src/protyle/toolbar/index.ts
+++ b/app/src/protyle/toolbar/index.ts
@@ -702,7 +702,7 @@ export class Toolbar {
}
if (currentNode && currentNode.nodeType !== 3) {
const currentType = (currentNode.getAttribute("data-type") || "").split(" ");
- if (currentNode.tagName !== "BR" &&
+ if (currentNode.tagName !== "BR" && !currentNode.classList.contains("img") &&
previousElement && previousElement.nodeType !== 3 &&
currentNode.nodeType !== 3 &&
isArrayEqual(currentType, (previousElement.getAttribute("data-type") || "").split(" ")) &&