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

Vanessa702d48252df8
diff --git a/app/src/protyle/wysiwyg/transaction.ts b/app/src/protyle/wysiwyg/transaction.ts
index ccc5286016..7d1fee9eed 100644
--- a/app/src/protyle/wysiwyg/transaction.ts
+++ b/app/src/protyle/wysiwyg/transaction.ts
@@ -284,6 +284,9 @@ const updateEmbed = (protyle: IProtyle, operation: IOperation) => {
tempElement.querySelectorAll('[contenteditable="true"]').forEach(editItem => {
editItem.setAttribute("contenteditable", "false");
});
+ tempElement.querySelectorAll(".protyle-wysiwyg--select").forEach(selectItem => {
+ selectItem.classList.remove("protyle-wysiwyg--select");
+ })
const wbrElement = tempElement.querySelector("wbr");
if (wbrElement) {
wbrElement.remove();