feat: editor attachment paste handling (#1975)

* reupload attachments if uploaded to a different page
* use image dimensions on paste/DnD

* tooltips withinPortal:false

* isolating attribute
This commit is contained in:
Philip Okugbe
2026-02-28 01:24:19 +00:00
committed by GitHub
parent df64de5306
commit fc0997fd90
15 changed files with 260 additions and 33 deletions
@@ -158,6 +158,15 @@ export async function importZip(
return req.data;
}
export async function getAttachmentInfo(
attachmentId: string,
): Promise<IAttachment> {
const req = await api.post<IAttachment>("/files/info", {
attachmentId,
});
return req.data;
}
export async function uploadFile(
file: File,
pageId: string,