Html Box¶
The HtmlBox widget allows users to input and edit HTML content or long text within a form.
XML Fields¶
XPathidentifies the element that receives the edited HTML text. The widget reads its initial value from this element and writes the edited value back to it.RichEditorenables the rich-text editing surface. Set it tofalsewhen the field must be edited as plain long text.ShowToolbarcontrols the formatting toolbar and is relevant whenRichEditoris enabled.Sizeselects the editor height.RequiredForGroupassociates required validation with a validation group, whilePlaceHolderprovides the empty-editor prompt.Hintsprovides contextual guidance;Rulesholds the rules that can control validation, visibility, or other supported form behavior.
The example includes every HtmlBox-specific and common text-input field. Leave optional content empty when the form does not need it.
Rich Text Editor¶
A rich text editor is enabled by default, providing features for formatting and styling text. This rich text editing functionality can be disabled by setting the RichEditor property to false.
HTML Sanitization¶
When rich editing is used, the client sanitizes the stored value before it is shown in or refreshed from the editor. Do not treat this as an authorization or trust boundary: only allow trusted users to edit HTML, and apply the necessary output-safety controls wherever the stored value is rendered.
Toolbar¶
A toolbar is provided (when RichEditor is true) offering common text editing functions such as bold, italic, underline, etc. The toolbar can be hidden by setting the ShowToolbar property to false.
Example¶
1 2 3 4 5 | |