Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-30765

[Custom attributes] Class from paragraph is applied to heading when switching between the two

    XMLWordPrintable

Details

    Description

      Class from paragraph is applied to heading when switching between the two.

      Prereq.: Configuration.

      system:
              default:
                  fieldtypes:
                      ezrichtext:
                          classes:
                              paragraph:
                                  choices: ['class1_p', 'class2_p']
                                  required: true
                                  default_value: 'class1_p'
                                  multiple: true
                           attributes:
                               paragraph:
                                   'select-single-attr-p':
                                       type: 'choice'
                                       multiple: false
                                       required: false
                                       choices: ['value1_p', 'value2_p']
                                       default_value: null
                                   'boolean-attr-p':
                                       type: 'boolean'
                                       default_value: true
      

      Steps:

      1. In a rich text field add a heading e.g. H1.
      2. Switch to paragraph.
      3. Switch back to heading.
      4. Add some text.
      5. Publish.
      6. Inspect element on frontend.

      Actual: Attributes from paragraph are present on heading.

      Attachments

        Activity

          People

            Unassigned Unassigned
            michal.szoltysek@ibexa.co Michał Szołtysek
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: