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

Vanessa3423d4d71f90
diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts
index f55bb5caa2..82fc268de3 100644
--- a/app/src/protyle/wysiwyg/index.ts
+++ b/app/src/protyle/wysiwyg/index.ts
@@ -636,6 +636,9 @@ export class WYSIWYG {
let currentElement: HTMLElement = startElement;
let hasJump = false;
while (currentElement) {
+ if (currentElement.classList.contains("protyle-breadcrumb__bar")) {
+ currentElement = currentElement.nextElementSibling as HTMLElement;
+ }
if (currentElement && !currentElement.classList.contains("protyle-attr")) {
const currentRect = currentElement.getBoundingClientRect();
if (startRect.top === endRect.top ? (currentRect.left <= endTop) : (currentRect.top <= endTop)) {