mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-24 16:04:06 +01:00
🐛 $$
This commit is contained in:
parent
12f56ae084
commit
8a4e4e0128
2 changed files with 6 additions and 4 deletions
|
|
@ -1076,7 +1076,10 @@ export class Toolbar {
|
|||
}
|
||||
|
||||
// 光标定位
|
||||
if (getSelection().rangeCount === 0) { // https://ld246.com/article/1665306093005
|
||||
if (getSelection().rangeCount === 0 ||
|
||||
// $$ 中间输入后再 ESC 光标无法定位
|
||||
(getSelection().rangeCount > 0 && hasClosestByClassName(getSelection().getRangeAt(0).startContainer, "protyle-util"))
|
||||
) { // https://ld246.com/article/1665306093005
|
||||
if (renderElement.tagName === "SPAN") {
|
||||
if (inlineLastNode) {
|
||||
if (inlineLastNode.parentElement) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue