Class RichTextTagHelper

Version: 21.x

Tag helper that renders HTML text for a Sitecore RichTextField.

Inheritance

System.Object

RichTextTagHelper

Namespace: Sitecore.AspNet.RenderingEngine.TagHelpers.Fields

Assembly: Sitecore.AspNet.RenderingEngine.dll

Syntax
public class RichTextTagHelper : TagHelper

Constructors

RichTextTagHelper()

Declaration
public RichTextTagHelper()

Properties

Editable

Gets or sets a value indicating whether the field can be edited.

Declaration
public bool Editable { get; set; }
Property Value
TypeDescription
System.Boolean

For

Gets or sets the model value.

Declaration
public ModelExpression For { get; set; }
Property Value
TypeDescription
Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExpression

TextModel

Gets or sets the rich text value.

Declaration
public EditableField<string> TextModel { get; set; }
Property Value
TypeDescription
EditableField

<

System.String

>

Methods

Process(TagHelperContext, TagHelperOutput)

Declaration
public override void Process(TagHelperContext context, TagHelperOutput output)
Parameters
TypeNameDescription
Microsoft.AspNetCore.Razor.TagHelpers.TagHelperContextcontext
Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutputoutput
If you have suggestions for improving this article, let us know!