From 481dc519f5f5b047e5536ddd8b9ff59cec99465f Mon Sep 17 00:00:00 2001 From: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com> Date: Fri, 20 Sep 2024 12:07:14 +0200 Subject: [PATCH] feat: add maxImageSize --- .../rte/tiptap/property-editors/tiptap/manifests.ts | 8 ++++++++ 1 file changed, 8 insertions(+) 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 471dd9dd5e..10051e7b93 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 @@ -95,6 +95,14 @@ export const manifests: Array = [ propertyEditorUiAlias: 'Umb.PropertyEditorUi.Integer', weight: 30, }, + { + alias: 'maxImageSize', + label: 'Maximum size for inserted images', + description: 'Maximum width or height - enter 0 to disable resizing', + propertyEditorUiAlias: 'Umb.PropertyEditorUi.Integer', + weight: 40, + config: [{ alias: 'min', value: 0 }], + }, ], defaultData: [], },