Creates parameter editor manfests and resolver, updates the legacy macro editor to resolve items from here.

This commit is contained in:
Shannon
2013-09-19 15:33:47 +10:00
parent bbd5747177
commit ec3761baa0
10 changed files with 171 additions and 17 deletions

View File

@@ -1,4 +1,5 @@
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
using Umbraco.Core.IO;
@@ -45,6 +46,18 @@ namespace Umbraco.Core.PropertyEditors
[JsonProperty("name", Required = Required.Always)]
public string Name { get; internal set; }
/// <summary>
/// Allows a parameter editor to be re-used based on the configuration specified.
/// </summary>
[JsonProperty("config")]
public virtual IDictionary<string, object> Configuration { get; set; }
[JsonIgnore]
public ParameterValueEditor ValueEditor
{
get { return CreateValueEditor(); }
}
/// <summary>
/// Creates a value editor instance
/// </summary>