Switched maxImageSize to use compact editor

also sets the default config value.
This commit is contained in:
leekelleher
2024-09-30 15:35:17 +01:00
parent 817423e329
commit 1e63126c82

View File

@@ -38,9 +38,8 @@ export const manifests: Array<ManifestPropertyEditorUi> = [
alias: 'maxImageSize',
label: 'Maximum size for inserted images',
description: 'Maximum width or height - enter 0 to disable resizing',
propertyEditorUiAlias: 'Umb.PropertyEditorUi.Integer',
propertyEditorUiAlias: 'Umb.PropertyEditorUI.TinyMCE.MaxImageSizeConfiguration',
weight: 40,
config: [{ alias: 'min', value: 0 }],
},
{
alias: 'overlaySize',
@@ -50,7 +49,10 @@ export const manifests: Array<ManifestPropertyEditorUi> = [
weight: 50,
},
],
defaultData: [{ alias: 'overlaySize', value: 'medium' }],
defaultData: [
{ alias: 'maxImageSize', value: 500 },
{ alias: 'overlaySize', value: 'medium' },
],
},
},
},