Aller au contenu principal

LgHtmlEditor

Module : Lagoon.UI
Namespace : Lagoon.UI.Components
Catégorie : HtmlEditor
Hérite de : LgInputBase<string>

HTML editor component.

Paramètres​

ParamètreTypeDescription
AllowResizeXboolAllow disable/enable horizintal resizing
AllowResizeYboolAllow disable/enable vertical resizing
AskBeforePasteFromWordboolGets or sets if the MSWord copy paste popup is displayed
AskBeforePasteHTMLboolGets or sets if the HTML copy paste popup is displayed
ButtonsList<string>The list of buttons that appear in the editor's toolbar on large places (≥ options.sizeLG). Note - this is not the width of the device, the width of the editor For example : "source", "bold", "italic", "underline", "strikethrough", "eraser", "superscript", "subscript", "ul", "ol", "indent", "outdent", "left", "font", "fontsize", "paragraph", "classSpan".
DefaultFontSizePointsstringFont size unit defined. Must be 'px' or 'pt'. The default is 'px'.
FontFamilyListDictionary<string, string>The list of font-family available in the dropdow in the editor
FontSizeListstring[]The available font size list
HeightstringSet Html editor height. It automatically will add resize handle.
InlineboolInline editing mode
LanguagestringForce the default Language.
MinHeightintSet Html editor minimal height in pixel.
OnChangingAsyncFunc<ChangingEventArgs<string>, Task>Gets or sets a callback called before the current value is changed.
OnInputEventCallback<ChangeEventArgs>Gets or sets a callback that updates the bound value.
OnPasteAsyncFunc<HtmlEditorPasteEventArgs, Task>Gets or sets a callback that is called before pasting content, or dropping content coming from outside the editor.
PlaceholderstringGets or sets the input placeholder
ShowInsertAsHtmlboolShow the "Insert as HTML" button in the HTML dialog box choices.
SpellcheckboolOptions specifies whether the editor is to have its spelling and grammar checked or not
StyleDictionary<string, string>Style applied on the jodit main container.
TextIconsboolReplace SVG icons to text
ToolbarboolWhether the toolbar should be shown

Paramètres hérités de LgInputBase<TValue>​

ParamètreTypeDescription
AdditionalAttributesIReadOnlyDictionary<string, object>Gets or sets a collection of additional attributes that will be applied to the created element.
AutoFocusboolGets or sets if the component received the focus on first render
ConfirmationMessagestringGets or sets if the component display confirmation modal with the message
ContainerIInputContainer<TValue>Used to attach a GridView cell to this input.
CssClassstringGets or sets the CSS class.
DisabledboolGets or sets the input disabled attribute
DisplayNamestringGets or sets the display name for this field. This value is used when generating error messages when the input value fails to parse correctly.
HideValidationMessageboolGet or set validator state
LabelstringGets or sets the label
LabelContentRenderFragmentGets or sets the render fragment to customize the label part
OnChangeEventCallback<ChangeEventArgs>Gets or sets a callback called after a the current value changed.
OnResetEventCallback<ChangeEventArgs>Gets or sets the call when the input is reset.
PolicyEditstringPolicy required to edit the TextBox
PolicyVisiblestringPolicy required to view the TextBox
ReadOnlyboolGets or sets the input readonly attribute
Requiredbool?Get or sets if this field is mandatory. If this parameter is null or not defined, the value is extracted from the [Required] attribute on the binding property.
ResetButtonbool?Display reset button if true
ResetTextstringReset button text
ResetTextAriaLabelstringReset button ariaLabel text
TooltipstringGets or sets the tooltip.
TooltipIsHtmlboolGets or sets if the tooltip contents use the HTML format; else, the content use a raw text format.
ValueTValueGets or sets the value of the input. This should be used with two-way binding.
ValueChangedEventCallback<TValue>Gets or sets a callback that updates the bound value.
ValueExpressionExpression<Func<TValue>>Gets or sets an expression that identifies the bound value.

Paramètres en cascade hérités de LgInputBase<TValue>​

ParamètreTypeDescription
ParentAuthorizeViewLgAuthorizeViewPotential policies defined by an ancestor

Paramètres hérités de LgAriaComponentBase​

ParamètreTypeDescription
AriaLabelstringGets or sets aria label
AriaLabelledBystringGets or sets id of component for aria label