using System; using System.ComponentModel; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using CMS.FormControls; using CMS.ExtendedControls; public partial class CMSFormControls_Macros_MacroEditor : FormEngineUserControl { #region "Properties" /// /// Gets or sets the value of this form control. /// /// Text content of this editor [Browsable(false)] public override object Value { get { return ucEditor.Text; } set { ucEditor.Text = (string)value; } } /// /// Gets or sets whether this form control is enabled. /// /// True, if form control is enabled, otherwise false [Browsable(true)] [Description("Determines whether this form control is enabled")] [Category("Form Control")] [DefaultValue(true)] public override bool Enabled { get { return base.Enabled; } set { base.Enabled = ucEditor.Editor.Enabled = value; } } /// /// Gets the editor control. /// public ExtendedTextArea Editor { get { return ucEditor.Editor; } } /// /// Gets or sets the left offset of the autocomplete control (to position it correctly). /// public int LeftOffset { get { return ucEditor.LeftOffset; } set { ucEditor.LeftOffset = value; } } /// /// Gets or sets the top offset of the autocomplete control (to position it correctly). /// public int TopOffset { get { return ucEditor.TopOffset; } set { ucEditor.TopOffset = value; } } #endregion protected void Page_Load(object sender, EventArgs e) { } }