From da88cc2d04fef1a617f364eb9635bf791b0583fd Mon Sep 17 00:00:00 2001 From: "Ali.Taheri" Date: Fri, 7 Sep 2018 11:04:35 +0100 Subject: [PATCH] temp-2939 - Removed hardcoded number of rows from textarea with the default value of 10. --- .../src/views/propertyeditors/textarea/textarea.html | 4 ++-- src/Umbraco.Web/PropertyEditors/TextAreaPropertyEditor.cs | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/textarea/textarea.html b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/textarea/textarea.html index ffb692ced0..51938bd676 100644 --- a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/textarea/textarea.html +++ b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/textarea/textarea.html @@ -1,9 +1,9 @@
- + Required
{{model.count}} characters left
-
\ No newline at end of file + diff --git a/src/Umbraco.Web/PropertyEditors/TextAreaPropertyEditor.cs b/src/Umbraco.Web/PropertyEditors/TextAreaPropertyEditor.cs index 659b1b3224..f4273303b4 100644 --- a/src/Umbraco.Web/PropertyEditors/TextAreaPropertyEditor.cs +++ b/src/Umbraco.Web/PropertyEditors/TextAreaPropertyEditor.cs @@ -20,6 +20,9 @@ namespace Umbraco.Web.PropertyEditors { [PreValueField("maxChars", "Maximum allowed characters", "number", Description = "If empty - no character limit")] public bool MaxChars { get; set; } + + [PreValueField("rows", "Number of rows", "number", Description = "If empty - 10 rows would be set as the default value")] + public bool Rows { get; set; } } } }