mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-20 14:04:06 +01:00
This commit is contained in:
parent
280f97ee81
commit
0d3dec71f3
4 changed files with 38 additions and 49 deletions
|
|
@ -245,12 +245,7 @@ const readLocalFile = async (protyle: IProtyle, localFiles: string[]) => {
|
|||
uploadLocalFiles(localFiles, protyle, true);
|
||||
};
|
||||
|
||||
export const paste = async (protyle: IProtyle, event: (ClipboardEvent | DragEvent | {
|
||||
textHTML?: string,
|
||||
textPlain?: string,
|
||||
siyuanHTML?: string,
|
||||
files?: File[],
|
||||
}) & {
|
||||
export const paste = async (protyle: IProtyle, event: (ClipboardEvent | DragEvent | IClipboardData) & {
|
||||
target: HTMLElement
|
||||
}) => {
|
||||
if ("clipboardData" in event || "dataTransfer" in event) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue