mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-03 01:39:36 +08:00
This commit is contained in:
parent
0f18f0dec3
commit
7c1bec64f2
@ -177,8 +177,14 @@ export const isEndOfBlock = (range: Range) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
while (nextSibling) {
|
while (nextSibling) {
|
||||||
if (hasNextSibling(nextSibling)) {
|
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;
|
return false;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
if (nextSibling.parentElement.getAttribute("spellcheck")) {
|
if (nextSibling.parentElement.getAttribute("spellcheck")) {
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user