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

"Custom Attributes" modal in richeditor saves all classes and attributes, also those not set by user

    XMLWordPrintable

Details

    • Yes

    Description

      Given config like this:

      ibexa:
          system:
              admin_group:
                  fieldtypes:
                      ezrichtext:
                          attributes:
                              paragraph:
                                  custom-attribute:
                                      type: boolean
                                      default_value: false
                                  another-attribute:
                                      type: choice
                                      choices: [attr1, attr2]
                                      default_value: attr2
                                      required: false
                                      multiple: true
      
                          classes:
                              paragraph:
                                  choices: [regular, special, tip_box, warning_box]
                                  default_value: p-regular
                                  required: false
                                  multiple: false
      
      

      The modal stores/changes all classes and attributes. So, in your case, if you set class:regular, it will also save the attributes [[custom-attribute]] and [[another-attribute]] even if those attributes have required: false and are not set/changed by user

      Designs

        Attachments

          Activity

            People

              mateusz.debinski@ibexa.co Mateusz Dębiński
              vidar.langseid@ibexa.co Vidar Langseid
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: