Kentico 12 - Rich Text Form components "Edit" button does no action in formbuilder

Kevin Ferati asked on July 31, 2023 13:14

Hello,

I am trying to create a form component which renders a markup entered by the user in the form component's properties. In my web app solution, i've installed the Kentico.EMS12.MvcComponents.Widget.RichText package and I've created a form component (the code is further below).

The property seems to render correctly, but clicking the "Edit" button does nothing :

Image Text

RichTextDesignFormComponent.cs

     public class RichTextDesignFormComponent :FormComponent<RichTextDesignFormComponentProperties, string>
{
    public const string IDENTIFIER = nameof(RichTextDesignFormComponent);

    public override string LabelForPropertyName => string.Empty;

    public string ContentMarkup => Properties.DesignMarkup;

    public override string GetValue() => ContentMarkup;

    public override void SetValue(string value) { }
}

RichTextDesignFormComponentProperties.cs

 public class RichTextDesignFormComponentProperties : RichTextProperties
{
    [EditingComponent(RichText.IDENTIFIER, Label = "Design")]
    public string DesignMarkup { get; set; }
}

_RichTextDeisgnFormComponent.cshtml

@using Kentico.Components.Web.Mvc.InlineEditors
@using UPU.Models.FormComponents.RichTextDesign
@model RichTextDesignFormComponent

@Html.Kentico().ResolveRichText(Model.ContentMarkup)

   Please, sign in to be able to submit a new answer.