diff --git a/packages/koenig-lexical/src/nodes/GalleryNode.jsx b/packages/koenig-lexical/src/nodes/GalleryNode.jsx index 5c578aa7fb..55f7dde094 100644 --- a/packages/koenig-lexical/src/nodes/GalleryNode.jsx +++ b/packages/koenig-lexical/src/nodes/GalleryNode.jsx @@ -10,7 +10,7 @@ import {populateNestedEditor, setupNestedEditor} from '../utils/nested-editors'; export const INSERT_GALLERY_COMMAND = createCommand(); -export const MAX_IMAGES = 9; +export const MAX_IMAGES = 30; export const MAX_PER_ROW = 3; // ensure we don't save client-side only properties such as preview blob urls to the server diff --git a/packages/koenig-lexical/src/nodes/GalleryNodeComponent.jsx b/packages/koenig-lexical/src/nodes/GalleryNodeComponent.jsx index 21cfa6fb77..a89ae9a9b4 100644 --- a/packages/koenig-lexical/src/nodes/GalleryNodeComponent.jsx +++ b/packages/koenig-lexical/src/nodes/GalleryNodeComponent.jsx @@ -57,7 +57,7 @@ export function GalleryNodeComponent({nodeKey, captionEditor, captionEditorIniti const strippedFiles = Array.prototype.slice.call(files, 0, allowedCount); if (strippedFiles.length < files.length) { - setErrorMessage('Galleries are limited to 9 images'); + setErrorMessage(`Galleries are limited to ${MAX_IMAGES} images`); } if (strippedFiles.length === 0) {