mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 08:30:12 +01:00
This commit is contained in:
parent
aa29fc044b
commit
3adf0d6d63
7 changed files with 42 additions and 1 deletions
|
|
@ -109,6 +109,10 @@ export const paste = async (protyle: IProtyle, event: (ClipboardEvent | DragEven
|
|||
files = event.dataTransfer.items;
|
||||
}
|
||||
}
|
||||
// 复制标题及其下方块使用 writeText,需将 textPLain 转换为 textHTML
|
||||
if (textPlain.endsWith(Constants.ZWSP) && !textHTML) {
|
||||
textHTML = textPlain
|
||||
}
|
||||
/// #if !MOBILE
|
||||
if (!textHTML && !textPlain && ("clipboardData" in event)) {
|
||||
if ("darwin" === window.siyuan.config.system.os) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue