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

    XMLWordPrintable

    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
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              damien.pobel-obsolete@ez.no Damien Pobel (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: