From 381d611d77738384c5e097f467fdbcdfddab7598 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Fri, 14 Nov 2025 21:54:11 +0100 Subject: [PATCH 1/2] configure max chars for textbox --- .../packages/property-editors/text-box/Umbraco.TextBox.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/property-editors/text-box/Umbraco.TextBox.ts b/src/Umbraco.Web.UI.Client/src/packages/property-editors/text-box/Umbraco.TextBox.ts index c67d1a6cf2b1..c7e3b40564a0 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/property-editors/text-box/Umbraco.TextBox.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/property-editors/text-box/Umbraco.TextBox.ts @@ -11,8 +11,12 @@ export const manifest: ManifestPropertyEditorSchema = { { alias: 'maxChars', label: 'Maximum allowed characters', - description: 'If empty, 512 character limit', propertyEditorUiAlias: 'Umb.PropertyEditorUi.Integer', + config: [ + { alias: 'min', value: 0 }, + { alias: 'max', value: 512 }, + { alias: 'placeholder', value: '512' }, + ], }, ], defaultData: [ From 4148f2004ef06090571e0d7df7e508be0570821c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Fri, 14 Nov 2025 21:54:29 +0100 Subject: [PATCH 2/2] min 1 --- .../src/packages/property-editors/text-box/Umbraco.TextBox.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/property-editors/text-box/Umbraco.TextBox.ts b/src/Umbraco.Web.UI.Client/src/packages/property-editors/text-box/Umbraco.TextBox.ts index c7e3b40564a0..66766ff4f45c 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/property-editors/text-box/Umbraco.TextBox.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/property-editors/text-box/Umbraco.TextBox.ts @@ -13,7 +13,7 @@ export const manifest: ManifestPropertyEditorSchema = { label: 'Maximum allowed characters', propertyEditorUiAlias: 'Umb.PropertyEditorUi.Integer', config: [ - { alias: 'min', value: 0 }, + { alias: 'min', value: 1 }, { alias: 'max', value: 512 }, { alias: 'placeholder', value: '512' }, ],