/// <summary> /// Formats the value as HTML. /// </summary> /// <param name="parentControl">The parent control.</param> /// <param name="value">The value.</param> /// <param name="configurationValues">The configuration values.</param> /// <param name="condensed">if set to <c>true</c> [condesed].</param> /// <returns></returns> public override string FormatValueAsHtml(Control parentControl, string value, Dictionary <string, ConfigurationValue> configurationValues, bool condensed = false) { var structureContentEditor = new StructureContentEditor(); structureContentEditor.StructuredContent = value; return(structureContentEditor.HtmlContent); }
/// <summary> /// Creates the control(s) necessary for prompting user for a new value /// </summary> /// <param name="configurationValues">The configuration values.</param> /// <param name="id"></param> /// <returns> /// The control /// </returns> public override Control EditControl(Dictionary <string, ConfigurationValue> configurationValues, string id) { var editor = new StructureContentEditor { ID = id }; return(editor); }