Files
Umbraco-CMS/src/Umbraco.Core/Configuration/UmbracoSettings/ContentScriptEditorElement.cs
T

27 lines
938 B
C#
Raw Normal View History

using System.Collections.Generic;
using System.Configuration;
2013-09-02 15:40:14 +02:00
namespace Umbraco.Core.Configuration.UmbracoSettings
{
2017-01-06 17:40:03 +11:00
internal class ContentScriptEditorElement : UmbracoConfigurationElement
2013-09-02 15:40:14 +02:00
{
[ConfigurationProperty("scriptFolderPath")]
internal InnerTextConfigurationElement<string> ScriptFolderPath
{
2017-01-06 17:40:03 +11:00
get { return GetOptionalTextElement("scriptFolderPath", "/scripts"); }
2013-09-02 15:40:14 +02:00
}
[ConfigurationProperty("scriptFileTypes")]
internal OptionalCommaDelimitedConfigurationElement ScriptFileTypes
{
2017-01-06 17:40:03 +11:00
get { return GetOptionalDelimitedElement("scriptFileTypes", new[] {"js", "xml"}); }
2013-09-02 15:40:14 +02:00
}
[ConfigurationProperty("scriptDisableEditor")]
internal InnerTextConfigurationElement<bool> ScriptEditorDisable
2013-09-02 15:40:14 +02:00
{
2017-01-06 17:40:03 +11:00
get { return GetOptionalTextElement("scriptDisableEditor", false); }
2013-09-02 15:40:14 +02:00
}
2013-09-02 15:40:14 +02:00
}
}