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

JavaScript error when removing an embed if it's the last element in the editor

    Details

      Description

      Steps to reproduce:

      1. Create Content Item with a RichText field
      2. Add only an embed element in the RichText
      3. Remove it from the editor with the Trash icon in the toolbar

      This generates a JavaScript error:

      The given range isn't in document
      Uncaught TypeError: Cannot read property 'contains' of null
      

        Issue Links

          Activity

          Show
          Damien Pobel (Inactive) added a comment - PR: https://github.com/ezsystems/PlatformUIBundle/pull/699
          Hide
          Miguel das Neves Jacinto (Inactive) added a comment -

          PR approved by QA

          Show
          Miguel das Neves Jacinto (Inactive) added a comment - PR approved by QA
          Show
          Damien Pobel (Inactive) added a comment - Fixed in 1.5 and master (1.6) https://github.com/ezsystems/PlatformUIBundle/commit/638c8519f7e108108c173ea8da9be9901a4fd9fa

            People

            • Assignee:
              Unassigned
              Reporter:
              Damien Pobel (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: