How to fix Rich Text Editor

10 months ago
Hi, this is my code:

<div class="card-body">
    @if (Model.HasAvailableSpecificationAttributes)
    {
    int counter = 0;

    foreach (var specAttribute in Model.SpecificationAttributes)
    {
      <div class="card card-default">
        <div class="card-body">
          <h2>@specAttribute.Name</h2>
          <div class="form-group row">
            <div class="col-md-2">
              <nop-label asp-for="@Model.SpecificationAttributes[counter].Value" />
            </div>
            <div class="col-md-10">
              <input asp-for="@Model.SpecificationAttributes[counter].Id" type="hidden" />
              <nop-editor asp-for="@Model.SpecificationAttributes[counter].Value" asp-template="RichEditor" />
              @*<nop-textarea asp-for="@Model.SpecificationAttributes[counter].Value" />*@
              <span asp-validation-for="@Model.SpecificationAttributes[counter].Value"></span>
            </div>
          </div>
        </div>
      </div>

      counter++;
    }
    }
    else
    {
        <div class="card card-default">
            <div class="card-body">
                @T("Admin.Catalog.Products.SpecificationAttributes.NoAttributes")
            </div>
        </div>
    }
</div>

Basically I want to display a dynamic amount of nop-edit elements (rich text editors), via the indexes from my custom object. The value is not visible and is empty. If I replace the nop-editor with for example nop-textarea like the commented, it works. Any ideas on how to fix this?
10 months ago
Anyone???
10 months ago
With NopCommerce's RichEditor, this is not feasible.

Due to the fact that RichEditor only supports string elements,
public string HeaderTitle1 { get; set; }