mirror of
https://github.com/docmost/docmost.git
synced 2026-07-25 19:44:40 +10:00
@@ -111,8 +111,9 @@ async function reuploadPastedAttachments(
|
|||||||
const match = ATTACHMENT_URL_RE.exec(src);
|
const match = ATTACHMENT_URL_RE.exec(src);
|
||||||
if (!match) return;
|
if (!match) return;
|
||||||
|
|
||||||
|
const cleanSrc = src.split("?")[0];
|
||||||
const fileName =
|
const fileName =
|
||||||
node.attrs.name || src.split("/").pop() || "file";
|
node.attrs.name || cleanSrc.split("/").pop() || "file";
|
||||||
|
|
||||||
pastedNodes.push({
|
pastedNodes.push({
|
||||||
pos,
|
pos,
|
||||||
|
|||||||
Reference in New Issue
Block a user