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

Vanessa7193cafcb11e
diff --git a/app/src/protyle/wysiwyg/transaction.ts b/app/src/protyle/wysiwyg/transaction.ts
index b8b62eadc5..898bc61bd0 100644
--- a/app/src/protyle/wysiwyg/transaction.ts
+++ b/app/src/protyle/wysiwyg/transaction.ts
@@ -1026,16 +1026,12 @@ export const turnsIntoTransaction = (options: {
selectsElement = [options.nodeElement];
}
let isContinue = false;
- let hasEmbedBlock = false;
let isList = false;
selectsElement.find((item, index) => {
if (item.classList.contains("li")) {
isList = true;
return true;
}
- if (item.classList.contains("bq") || item.classList.contains("sb") || item.classList.contains("p")) {
- hasEmbedBlock = true;
- }
if (item.nextElementSibling && selectsElement[index + 1] &&
item.nextElementSibling === selectsElement[index + 1]) {
isContinue = true;
@@ -1044,7 +1040,7 @@ export const turnsIntoTransaction = (options: {
return true;
}
});
- if (isList || (hasEmbedBlock && options.type === "Blocks2Ps")) {
+ if (isList) {
return;
}
if (selectsElement.length === 1 && options.type === "Blocks2Hs" &&