Hello,I have been trying to display a rich text component for a user form. As of now it does display on the edit page view but not on the page itself. The docs only seem to mention displaying the html content to the user and not the editor. Using Kentico 13 for context.Properties file: public class RichTextProperties : FormComponentProperties@string@
{
public RichTextProperties() : base(FieldDataType.Text, size: 4000)
{
}
[EditingComponent(Kentico.Components.Web.Mvc.FormComponents.RichTextComponent.IDENTIFIER, Label = @Content@)]
public override string DefaultValue
{
get;
set;
}
}
//The RichTextComponent.cshtml file
@if (Context.Kentico().PageBuilder().EditMode) {
Html.Kentico().RichTextEditor(nameof(Model.Properties.DefaultValue));
} else {
@Html.Kentico().RichTextEditorFor(m =@ m.Value, htmlAttributes, configurationName: @simple@)
}
I'd appreciate it if anyone could point me to the right direction on this.
↧