Vanessa 2024-12-12 10:33:45 +08:00
parent 1f3fbc5d39
commit 7cdc42e190
2 changed files with 14 additions and 6 deletions

View file

@ -502,6 +502,7 @@ export const paste = async (protyle: IProtyle, event: (ClipboardEvent | DragEven
return;
} else if (files && files.length > 0) {
uploadFiles(protyle, files);
return;
} else if (textPlain.trim() !== "" && files && files.length === 0) {
if (range.toString() !== "") {
const firstLine = textPlain.split("\n")[0];