Adds default value support to TextArea data editor setting type
This commit is contained in:
@@ -32,6 +32,9 @@ namespace umbraco.editorControls.SettingControls
|
||||
|
||||
if (string.IsNullOrEmpty(tb.Text) && this.Prevalues.Count > 0)
|
||||
tb.Text = this.Prevalues[0];
|
||||
else if (string.IsNullOrEmpty(tb.Text) && !string.IsNullOrEmpty(DefaultValue))
|
||||
tb.Text = DefaultValue;
|
||||
|
||||
|
||||
return tb;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user