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

[BO - Richtext]: can not add custom css classes to *heading* element

    XMLWordPrintable

Details

    • Ibexa Commerce, Ibexa Content, Ibexa Experience
    • Yes

    Description

      Steps top reproduce:
       
      1. 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

      config/packages/app.yaml
      ibexa:
          system:
              admin_group:
                  fieldtypes:
                      ezrichtext:
                          classes:
                              heading:
                                  choices: [ foo, bar ]
                                  default_value: foo
                                  required: false
                                  multiple: false
      

      2. Edit some Content (Content Type: folder).

      Result:
      Richtext Fields are not editable.
      Console shows JS Errors:

      Uncaught (in promise) CKEditorError: schema-cannot-extend-missing-item {"itemName":"heading"}
      Read more: https://ckeditor.com/docs/ckeditor5/latest/support/error-codes.html#error-schema-cannot-extend-missing-item
          at Schema.extend (ibexa-richtext-onlineeditor-js.js:31413:15)
          at ibexa-richtext-onlineeditor-js.js:103850:22
          at Array.forEach (<anonymous>)
          at IbexaCustomAttributesEditing.init (ibexa-richtext-onlineeditor-js.js:103849:33)
      

      Designs

        Attachments

          Activity

            People

              Unassigned Unassigned
              thorsten.reiter@ibexa.co Thorsten Reiter
              Votes:
              2 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: