mirror of
https://github.com/docmost/docmost.git
synced 2026-05-18 23:44:24 +08:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user