mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 09:00:12 +01:00
🚨
This commit is contained in:
parent
03a0de560e
commit
dc2536cbad
1 changed files with 2 additions and 2 deletions
|
|
@ -305,9 +305,9 @@ ${cell.color ? `color:${cell.color};` : ""}">${text}</div>`;
|
||||||
}
|
}
|
||||||
if (getSelection().rangeCount > 0) {
|
if (getSelection().rangeCount > 0) {
|
||||||
// 修改表头后光标重新定位
|
// 修改表头后光标重新定位
|
||||||
const range = getSelection().getRangeAt(0)
|
const range = getSelection().getRangeAt(0);
|
||||||
if (!hasClosestByClassName(range.startContainer, "av__title")) {
|
if (!hasClosestByClassName(range.startContainer, "av__title")) {
|
||||||
const blockElement = hasClosestBlock(range.startContainer)
|
const blockElement = hasClosestBlock(range.startContainer);
|
||||||
if (blockElement && e.isSameNode(blockElement)) {
|
if (blockElement && e.isSameNode(blockElement)) {
|
||||||
focusBlock(e);
|
focusBlock(e);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue