mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-26 03:18:48 +01:00
This commit is contained in:
parent
e4849c5911
commit
cd5f93e2d6
1 changed files with 5 additions and 1 deletions
|
|
@ -601,7 +601,11 @@ export class Toolbar {
|
|||
for (let i = newNodes.length - 1; i > -1; i--) {
|
||||
this.range.insertNode(newNodes[i]);
|
||||
}
|
||||
|
||||
// 不选中后,ctrl+g 光标重置
|
||||
if (newNodes.length === 1 && newNodes[0].textContent === Constants.ZWSP) {
|
||||
this.range.setStart(newNodes[0], 1);
|
||||
this.range.collapse(true);
|
||||
}
|
||||
if (!keepZWPS) {
|
||||
// 合并元素
|
||||
for (let i = 0; i <= newNodes.length; i++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue