/// <summary>
        /// Saves the data-type PreValue options.
        /// </summary>
        public override void Save()
        {
            // set the options
            var options = new NotesOptions
            {
                Value = Notes.Text = HttpUtility.HtmlDecode(Notes.Text),// Due to bug in TinyMCE, need to reset Notes.Text to unencoded value
                ShowLabel = ShowLabel.Checked
            };

            // save the options as JSON
            this.SaveAsJson(options);
        }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NotesDataEditor"/> class.
 /// </summary>
 /// <param name="options">The options.</param>
 public NotesDataEditor(NotesOptions options)
 {
     m_options = options;
 }