working on U4-5687 Fix issues with mini content editor that is launched from new Edit button in MNTP

This commit is contained in:
Shannon
2014-10-27 16:11:20 +10:00
parent ec86c92753
commit 40de02ca5d
4 changed files with 37 additions and 3 deletions

View File

@@ -16,7 +16,8 @@ namespace Umbraco.Web.PropertyEditors
{
_internalPreValues = new Dictionary<string, object>
{
{"multiPicker", "1"}
{"multiPicker", "1"},
{"showEditButton", "0"}
};
}
@@ -46,6 +47,9 @@ namespace Umbraco.Web.PropertyEditors
[PreValueField("maxNumber", "Maximum number of items", "number")]
public string MaxNumber { get; set; }
[PreValueField("showEditButton", "Show edit button", "boolean")]
public string ShowEditButton { get; set; }
/// <summary>
/// This ensures the multiPicker pre-val is set based on the maxNumber of nodes set
/// </summary>