Skip to content

Commit

Permalink
CMS Pages: increase image size limit (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
hingobway authored Jul 6, 2024
1 parent 396e395 commit a1d018c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/app/cms/_tiptap/fileHandler/fileHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { getPageData } from '../pageData/pageData';
type FileHandlerEditor = FileHandlePluginOptions['editor'];

const MIME_TYPES = ALLOWED_TYPES;
const MAX_SIZE_MB = 0.5;
const MAX_SIZE_MB = 10;

export const FileHandler = FileHandlerRoot.configure({
onDrop(editor, files, pos) {
Expand All @@ -21,7 +21,7 @@ export const FileHandler = FileHandlerRoot.configure({
onPaste(editor, files, htmlContent) {
if (htmlContent) {
// TODO should this be handled separately
// return false;
return false;
}

handleFiles(editor, files);
Expand Down

0 comments on commit a1d018c

Please sign in to comment.