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

Online editors is broken when you try to edit custom tag without attributes

    XMLWordPrintable

    Details

      Description

      Steps to reproduce:
      1. Add a new custom tag without attributes:

      ezpublish:
          system:
              default:
                  fieldtypes:
                      ezrichtext:
                          custom_tags:
                              - separator
      ezrichtext:
          custom_tags:
              separator:
                  template: '@ezdesign/field_type/ezrichtext/custom_tag/separator.html.twig'
                  icon: '/bundles/hbsbakerplatform/img/hbs-icons.svg#separator'
                  is_inline: false
      

      2. Try insert this new custom tag to any content and publish the content.
      3. Try to edit published content version and you will get the following error in browser console:

      Uncaught TypeError: Cannot convert undefined or null to object
          at Function.keys (<anonymous>)
          at g.renderAttributes (ez-custom-tag-base.js:182)
          ...
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            L0rdJ Serhey Dolgushev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: