mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-05-18 05:05:36 +02:00
editor: allow attaching image as file (#8752)
* editor: allow attaching image as file Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com> * web: fix image previews for regular attachments * mobile: allow images to be added as attachment without preview * web: minor refactor Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com> --------- Co-authored-by: Ammar Ahmed <ammarahmed6506@gmail.com>
This commit is contained in:
@@ -102,7 +102,7 @@ export function RemoveAttachment(props: ToolProps) {
|
||||
}
|
||||
|
||||
const previewableFileExtensions = ["pdf"];
|
||||
const previewableMimeTypes = ["application/pdf"];
|
||||
const previewableMimeTypes = ["application/pdf", "image/"];
|
||||
|
||||
function canPreviewAttachment(attachment: Attachment) {
|
||||
if (!attachment) return false;
|
||||
|
||||
Reference in New Issue
Block a user