30 lines
1.3 KiB
C#
30 lines
1.3 KiB
C#
using Newtonsoft.Json.Linq;
|
|
using Umbraco.Core;
|
|
using Umbraco.Core.PropertyEditors;
|
|
|
|
namespace Umbraco.Web.PropertyEditors
|
|
{
|
|
/// <summary>
|
|
/// Represents the configuration for the grid value editor.
|
|
/// </summary>
|
|
public class GridConfiguration : IIgnoreUserStartNodesConfig
|
|
{
|
|
// TODO: Make these strongly typed, for now this works though
|
|
[ConfigurationField("items", "Grid", "views/propertyeditors/grid/grid.prevalues.html", Description = "Grid configuration")]
|
|
public JObject Items { get; set; }
|
|
|
|
// TODO: Make these strongly typed, for now this works though
|
|
[ConfigurationField("rte", "Rich text editor", "views/propertyeditors/rte/rte.prevalues.html", Description = "Rich text editor configuration", HideLabel = true)]
|
|
public JObject Rte { get; set; }
|
|
|
|
[ConfigurationField(Core.Constants.DataTypes.ReservedPreValueKeys.IgnoreUserStartNodes,
|
|
"Ignore User Start Nodes", "boolean",
|
|
Description = "Selecting this option allows a user to choose nodes that they normally don't have access to.")]
|
|
public bool IgnoreUserStartNodes { get; set; }
|
|
|
|
[ConfigurationField("mediaParentId", "Image Upload Folder", "mediafolderpicker",
|
|
Description = "Choose the upload location of pasted images")]
|
|
public GuidUdi MediaParentId { get; set; }
|
|
}
|
|
}
|