29 lines
1.2 KiB
C#
29 lines
1.2 KiB
C#
using Newtonsoft.Json.Linq;
|
|
using Umbraco.Core;
|
|
using Umbraco.Core.PropertyEditors;
|
|
|
|
namespace Umbraco.Web.PropertyEditors
|
|
{
|
|
/// <summary>
|
|
/// Represents the configuration for the rich text value editor.
|
|
/// </summary>
|
|
public class RichTextConfiguration : IIgnoreUserStartNodesConfig
|
|
{
|
|
// TODO: Make these strongly typed, for now this works though
|
|
[ConfigurationField("editor", "Editor", "views/propertyeditors/rte/rte.prevalues.html", HideLabel = true)]
|
|
public JObject Editor { get; set; }
|
|
|
|
[ConfigurationField("hideLabel", "Hide Label", "boolean")]
|
|
public bool HideLabel { 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; }
|
|
}
|
|
}
|