diff --git a/src/Umbraco.Web/PropertyEditors/ContentPickerConfigurationEditor.cs b/src/Umbraco.Web/PropertyEditors/ContentPickerConfigurationEditor.cs index 5be97e5f76..00ad7e6327 100644 --- a/src/Umbraco.Web/PropertyEditors/ContentPickerConfigurationEditor.cs +++ b/src/Umbraco.Web/PropertyEditors/ContentPickerConfigurationEditor.cs @@ -12,6 +12,13 @@ namespace Umbraco.Web.PropertyEditors .Config = new Dictionary { { "idType", "udi" } }; } + public override IDictionary DefaultConfiguration => new Dictionary + { + ["idType"] = "udi", + ["showEditButton"] = false, + ["showPathOnHover"] = false, + }; + public override IDictionary ToValueEditor(object configuration) { // these are not configuration fields, but constants required by the value editor diff --git a/src/Umbraco.Web/PropertyEditors/DateConfigurationEditor.cs b/src/Umbraco.Web/PropertyEditors/DateConfigurationEditor.cs index b0839c5157..9e20a7a305 100644 --- a/src/Umbraco.Web/PropertyEditors/DateConfigurationEditor.cs +++ b/src/Umbraco.Web/PropertyEditors/DateConfigurationEditor.cs @@ -8,6 +8,11 @@ namespace Umbraco.Web.PropertyEditors /// public class DateConfigurationEditor : ConfigurationEditor { + public override IDictionary DefaultConfiguration => new Dictionary + { + ["pickTime"] = false, + }; + public override IDictionary ToValueEditor(object configuration) { var d = base.ToValueEditor(configuration); diff --git a/src/Umbraco.Web/PropertyEditors/DateTimeConfigurationEditor.cs b/src/Umbraco.Web/PropertyEditors/DateTimeConfigurationEditor.cs index 494d8814f4..882400a25e 100644 --- a/src/Umbraco.Web/PropertyEditors/DateTimeConfigurationEditor.cs +++ b/src/Umbraco.Web/PropertyEditors/DateTimeConfigurationEditor.cs @@ -8,6 +8,11 @@ namespace Umbraco.Web.PropertyEditors /// public class DateTimeConfigurationEditor : ConfigurationEditor { + public override IDictionary DefaultConfiguration => new Dictionary + { + ["pickTime"] = true, + }; + public override IDictionary ToValueEditor(object configuration) { var d = base.ToValueEditor(configuration); diff --git a/src/Umbraco.Web/PropertyEditors/MediaPickerConfigurationEditor.cs b/src/Umbraco.Web/PropertyEditors/MediaPickerConfigurationEditor.cs index e810a65fb6..c7c3b1087c 100644 --- a/src/Umbraco.Web/PropertyEditors/MediaPickerConfigurationEditor.cs +++ b/src/Umbraco.Web/PropertyEditors/MediaPickerConfigurationEditor.cs @@ -20,6 +20,11 @@ namespace Umbraco.Web.PropertyEditors }; } + public override IDictionary DefaultConfiguration => new Dictionary + { + ["idType"] = "udi" + }; + public override IDictionary ToValueEditor(object configuration) { var d = base.ToValueEditor(configuration); @@ -27,4 +32,4 @@ namespace Umbraco.Web.PropertyEditors return d; } } -} \ No newline at end of file +} diff --git a/src/Umbraco.Web/PropertyEditors/MultiNodePickerConfigurationEditor.cs b/src/Umbraco.Web/PropertyEditors/MultiNodePickerConfigurationEditor.cs index 75fe581d5b..96cdbe5dc1 100644 --- a/src/Umbraco.Web/PropertyEditors/MultiNodePickerConfigurationEditor.cs +++ b/src/Umbraco.Web/PropertyEditors/MultiNodePickerConfigurationEditor.cs @@ -28,6 +28,14 @@ namespace Umbraco.Web.PropertyEditors return output; } + public override IDictionary DefaultConfiguration => new Dictionary + { + ["multiPicker"] = true, + ["showEditButton"] = false, + ["showPathOnHover"] = false, + ["idType"] = "udi" + }; + /// public override IDictionary ToValueEditor(object configuration) {