Vanessa 2025-04-29 11:01:54 +08:00
parent 0f18f0dec3
commit 7c1bec64f2

View File

@ -177,8 +177,14 @@ export const isEndOfBlock = (range: Range) => {
}
while (nextSibling) {
if (hasNextSibling(nextSibling)) {
return false;
const nextNextSibling = hasNextSibling(nextSibling);
if (nextNextSibling) {
// 行内元素后为 \n https://github.com/siyuan-note/siyuan/issues/14290#issuecomment-2833372579
if (nextNextSibling.nodeType === 3 && (nextNextSibling as Text).wholeText === "\n") {
nextSibling = nextNextSibling;
} else {
return false;
}
} else {
if (nextSibling.parentElement.getAttribute("spellcheck")) {
return true;