mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-20 14:04:06 +01:00
Improve right-click menu paste (#15286)
* 🎨 Improve right-click menu paste * 🎨 Improve right-click menu paste
This commit is contained in:
parent
62d560e7a8
commit
280f97ee81
3 changed files with 51 additions and 6 deletions
|
|
@ -248,6 +248,7 @@ const readLocalFile = async (protyle: IProtyle, localFiles: string[]) => {
|
|||
export const paste = async (protyle: IProtyle, event: (ClipboardEvent | DragEvent | {
|
||||
textHTML?: string,
|
||||
textPlain?: string,
|
||||
siyuanHTML?: string,
|
||||
files?: File[],
|
||||
}) & {
|
||||
target: HTMLElement
|
||||
|
|
@ -275,6 +276,7 @@ export const paste = async (protyle: IProtyle, event: (ClipboardEvent | DragEven
|
|||
} else {
|
||||
textHTML = event.textHTML;
|
||||
textPlain = event.textPlain;
|
||||
siyuanHTML = event.siyuanHTML;
|
||||
files = event.files;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue