mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 08:30:42 +02:00
This commit is contained in:
parent
8cbefc8788
commit
24285aae56
1 changed files with 1 additions and 1 deletions
|
@ -1741,7 +1741,7 @@ export class WYSIWYG {
|
|||
}
|
||||
const range = getSelection().getRangeAt(0);
|
||||
if (this.element === range.startContainer || this.element.contains(range.startContainer)) {
|
||||
protyle.toolbar.range = range;
|
||||
protyle.toolbar.range = range.cloneRange();
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue