Adds default value support to TextArea data editor setting type

This commit is contained in:
starfighter83
2011-07-26 08:04:52 -02:00
parent a03b9932ff
commit 5c57c192c9

View File

@@ -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;
}