mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
This commit is contained in:
parent
45f0de97c2
commit
efda0fb161
1 changed files with 1 additions and 1 deletions
|
|
@ -644,7 +644,7 @@ export const focusBlock = (element: Element, parentElement?: HTMLElement, toStar
|
||||||
} else {
|
} else {
|
||||||
let focusHljs = false;
|
let focusHljs = false;
|
||||||
// 定位到末尾 https://github.com/siyuan-note/siyuan/issues/5982
|
// 定位到末尾 https://github.com/siyuan-note/siyuan/issues/5982
|
||||||
if (cursorElement.classList.contains("hljs")) {
|
if (cursorElement.parentElement.classList.contains("hljs")) {
|
||||||
// 代码块末尾定位需在 /n 之前 https://github.com/siyuan-note/siyuan/issues/9141,https://github.com/siyuan-note/siyuan/issues/9189
|
// 代码块末尾定位需在 /n 之前 https://github.com/siyuan-note/siyuan/issues/9141,https://github.com/siyuan-note/siyuan/issues/9189
|
||||||
let lastNode = cursorElement.lastChild;
|
let lastNode = cursorElement.lastChild;
|
||||||
if (!lastNode) {
|
if (!lastNode) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue