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

Javascript error when setting custom classes on paragraph in richtext

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Low Low
    • None
    • 4.4.1
    • None

    Description

      When I add a new paragraph in the empty richtext and I assign a custom class to it then I have a javascript error.

       

      Steps to reproduce:

      1. Add custom classes to paragraph in your config
      ibexa:
          system:
              admin_group:
                  fieldtypes:
                      ezrichtext:
                          classes:
                              paragraph:
                                  choices: [paragraph1, paragraph2, paragraph3]
                                  default_value: paragraph1
                                  required: false
                                  multiple: false 
      1. Create or edit content with richtext attribute
      2. Add new paragraph and assign a custom class
      3. In the console you will see the error (screenshot above)

      The error doesn't seem to break anything, the class is assigned anyway.

      Designs

        Attachments

          Activity

            People

              Unassigned Unassigned
              e36b8d7e-ac7b-4a9f-87d9-0c1a1a3f8db1@accounts.ibexa.co Pawel Goca
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: