mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 09:30:14 +01:00
🎨 移动端复制后长按块粘贴无效 Fix https://github.com/siyuan-note/insider/issues/1091
This commit is contained in:
parent
34e4697878
commit
21b76c1a72
4 changed files with 13 additions and 4 deletions
|
|
@ -13,6 +13,13 @@ export const openByMobile = (uri: string) => {
|
|||
}
|
||||
};
|
||||
|
||||
export const readText = async () => {
|
||||
if ("android" === window.siyuan.config.system.container && window.JSAndroid) {
|
||||
return window.JSAndroid.readClipboard();
|
||||
}
|
||||
return navigator.clipboard.readText();
|
||||
}
|
||||
|
||||
export const writeText = async (text: string) => {
|
||||
let range: Range;
|
||||
if (getSelection().rangeCount > 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue