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

    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)
          ...
      

        Activity

        Show
        Michał Szołtysek added a comment - PR: https://github.com/ezsystems/ezplatform-admin-ui/pull/964
        Hide
        Katarzyna Zawada added a comment -

        QA Approved

        Show
        Katarzyna Zawada added a comment - QA Approved
        Show
        Katarzyna Zawada added a comment - PR merged to master: https://github.com/ezsystems/ezplatform-admin-ui/commit/c1c7ab34ff2b30457b0ae452fa218d050fcd1ef6

          People

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

            Dates

            • Created:
              Updated:
              Resolved: