mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 09:30:14 +01:00
This commit is contained in:
parent
a2fb0071e7
commit
d5931778cf
6 changed files with 34 additions and 30 deletions
|
|
@ -14,7 +14,7 @@ export const openByMobile = (uri: string) => {
|
|||
};
|
||||
|
||||
export const writeText = async (text: string) => {
|
||||
let range: Range
|
||||
let range: Range;
|
||||
if (getSelection().rangeCount > 0) {
|
||||
range = getSelection().getRangeAt(0).cloneRange();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue