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

Cannot deselect custom attribute or class after it was selected for an element in RichText editor

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 4.5.0, 4.4.4
    • None
    • None
    • Yes

    Description

      When there is a custom attribute or class defined for an element in Richtext with a "multiple" option set, there is no way to deselect already selected attributes or classes.

      Steps to reproduce
      1. Clean installation of Ibexa DXP v4.4 or v4.5
      2. Define a custom attribute and/or class for the paragraph in the config/packages/ibexa.yaml:

      ibexa:
          system:
              admin_group:
                  fieldtypes:
                      ezrichtext:
                          attributes:
                              paragraph:
                                  test:
                                      type: choice
                                      choices: [ test1, test2]
                                      default_value: test2
                                      required: false
                                      multiple: true
                          classes:
                              paragraph:
                                  choices: [ test1, test2, test3 ]
                                  default_value: test1
                                  required: false
                                  multiple: true

       

      3. Create a Folder content - in the "Description" Field type Lorem Ipsum and try selecting and deselecting attributes and or classes

      Result
      Clicking on a class or attribute on a list won't remove it from the list.

      Expected result
      Choosing an attribute or class from the dropdown again removes the element from the list.

      Designs

        Attachments

          Activity

            People

              Unassigned Unassigned
              mateusz.bieniek@ibexa.co Mateusz Bieniek
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: