From 1e63126c820602efb103c8793244dc92ba799197 Mon Sep 17 00:00:00 2001 From: leekelleher Date: Mon, 30 Sep 2024 15:35:17 +0100 Subject: [PATCH] Switched `maxImageSize` to use compact editor also sets the default config value. --- .../rte/tiptap/property-editors/tiptap/manifests.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/rte/tiptap/property-editors/tiptap/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/rte/tiptap/property-editors/tiptap/manifests.ts index 3efdc1912d..67edb85388 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/rte/tiptap/property-editors/tiptap/manifests.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/rte/tiptap/property-editors/tiptap/manifests.ts @@ -38,9 +38,8 @@ export const manifests: Array = [ 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 = [ weight: 50, }, ], - defaultData: [{ alias: 'overlaySize', value: 'medium' }], + defaultData: [ + { alias: 'maxImageSize', value: 500 }, + { alias: 'overlaySize', value: 'medium' }, + ], }, }, },