Uploaded image for project: 'Ibexa IBX'
  1. Ibexa IBX
  2. IBX-5981

[BO - Richtext]: can not add custom css classes to *heading* element when multiple is set to true and required to false

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 4.5.0, 4.4.4
    • None
    • None
    • eZ Commerce, Ibexa Commerce, Ibexa Content
    • Yes

    Description

      Steps top reproduce:
       In a clean version of DXP, add config for additional CSS classes for heading element as shown in https://doc.ibexa.co/en/latest/content_management/rich_text/extend_online_editor/#custom-css-classes

      Pay attention to use multiple choices with required set to false as below:

       

      ibexa:
          system:
              admin_group:
                  fieldtypes:
                      ezrichtext:
                          classes:
                              heading:
                                  choices: [ regular, special, tip]
                                  required: false
                                  multiple: true

      You will get an error: It turns out that a default_value is required to make it work despite of the required set to false

       

      Expected:

      The config above should be working

      Designs

        Attachments

          Activity

            People

              Unassigned Unassigned
              lionel.akpagni@ibexa.co Lionel Akpagni
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: