An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: fix https://github.com/siyuan-note/siyuan/issues/6652
Vanessac722f6d00303
diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.tsindex af039c0127..92e4da4cd1 100644--- a/app/src/protyle/wysiwyg/index.ts+++ b/app/src/protyle/wysiwyg/index.ts@@ -1076,8 +1076,9 @@ export class WYSIWYG {if (parentElement) {// 引用文本剪切 https://ld246.com/article/1647689760545// 表格多行剪切 https://ld246.com/article/1652603836350+ // 自定义表情的段落剪切后表情丢失 https://ld246.com/article/1668781478724Array.from(parentElement.children).forEach(item => {- if (item.textContent === "" && (item.nodeType === 1 && item.tagName !== "BR")) {+ if (item.textContent === "" && (item.nodeType === 1 && !["BR", "IMG"].includes(item.tagName))) {item.remove();}});