mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 09:00:12 +01:00
This commit is contained in:
parent
91457dc2cd
commit
9cae635647
3 changed files with 17 additions and 10 deletions
|
|
@ -78,7 +78,7 @@ export const pasteText = (protyle: IProtyle, textPlain: string, nodeElement: Ele
|
|||
processRender(protyle.wysiwyg.element);
|
||||
highlightRender(protyle.wysiwyg.element);
|
||||
filterClipboardHint(protyle, textPlain);
|
||||
scrollCenter(protyle);
|
||||
scrollCenter(protyle, undefined, false, "smooth");
|
||||
};
|
||||
|
||||
export const paste = async (protyle: IProtyle, event: (ClipboardEvent | DragEvent) & { target: HTMLElement }) => {
|
||||
|
|
@ -262,7 +262,7 @@ export const paste = async (protyle: IProtyle, event: (ClipboardEvent | DragEven
|
|||
processRender(protyle.wysiwyg.element);
|
||||
highlightRender(protyle.wysiwyg.element);
|
||||
filterClipboardHint(protyle, response.data);
|
||||
scrollCenter(protyle);
|
||||
scrollCenter(protyle, undefined, false, "smooth");
|
||||
});
|
||||
return;
|
||||
} else if (files && files.length > 0) {
|
||||
|
|
@ -285,5 +285,5 @@ export const paste = async (protyle: IProtyle, event: (ClipboardEvent | DragEven
|
|||
processRender(protyle.wysiwyg.element);
|
||||
highlightRender(protyle.wysiwyg.element);
|
||||
}
|
||||
scrollCenter(protyle);
|
||||
scrollCenter(protyle, undefined, false, "smooth");
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue