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

JavaScript error when giving the focus to a RichText editor by clicking on an embed

    Details

      Description

      This issue only happens on Firefox.
      I was not able to reproduce it either on Chrome or in Microsoft Edge.

      Steps to Reproduce

      -Open your browser developer tools
      -Login into ezplatform as admin
      -Choose a content of type folder
      -In a richtext field, add an "embed" content and confirm
      -Now, in the toolbar that appears in the embed block, click on "Select another content item" icon
      -When the UDW appears, don't choose anything and click the "Cancel" button
      -(don't click anywhere else) Hoover over the embed block (you see a yellow border)
      -Now click on the embed block

      The following js error appears on your browser developer tools

      TypeError: this._getWidget(...) is null
      http://ezp.paulo/_ezcombo?/bundles/ezplatformui/js/alloyeditor/buttons/mixins/widgetbutton.js&/bundles/ezplatformui/js/alloyeditor/buttons/embed.js&/bundles/ezplatformui/js/alloyeditor/buttons/mixins/embedimage.js&/bundles/ezplatformui/js/alloyeditor/buttons/image.js&/bundles/ezplatformui/js/alloyeditor/buttons/imagevariation.js&/bundles/ezplatformui/js/alloyeditor/buttons/mixins/embedalign.js&/bundles/ezplatformui/js/alloyeditor/buttons/embedcenter.js&/bundles/ezplatformui/js/alloyeditor/buttons/embedright.js&/bundles/ezplatformui/js/alloyeditor/buttons/embedleft.js&/bundles/ezplatformui/js/alloyeditor/buttons/mixins/blocktextalign.js&/bundles/ezplatformui/js/alloyeditor/buttons/blocktextalignleft.js&/bundles/ezplatformui/js/alloyeditor/buttons/blocktextaligncenter.js&/bundles/ezplatformui/js/alloyeditor/buttons/blocktextalignright.js&/bundles/ezplatformui/js/alloyeditor/buttons/blocktextalignjustify.js&/bundles/ezplatformui/js/alloyeditor/buttons/blockremove.js&/bundles/ezplatformui/js/alloyeditor/buttons/embedhref.js
      Line 437
      

        Issue Links

          Activity

          Hide
          Damien Pobel (Inactive) added a comment - - edited

          Quicker steps to reproduce:

          1. Create a folder
          2. Add an embed in the first RichText field
          3. Give the focus to another field (for instance the Name)
          4. Directly click on the added embed element
          Show
          Damien Pobel (Inactive) added a comment - - edited Quicker steps to reproduce: Create a folder Add an embed in the first RichText field Give the focus to another field (for instance the Name) Directly click on the added embed element
          Show
          Damien Pobel (Inactive) added a comment - PR: https://github.com/ezsystems/PlatformUIBundle/pull/697
          Hide
          Damien Pobel (Inactive) added a comment -

          Fixed in 1.5 and master https://github.com/ezsystems/PlatformUIBundle/commit/fe861ec2ce38fd62cc1a9dc2cc020ea0f8eac6bc
          (again forgot to send the PR to QA...)

          Show
          Damien Pobel (Inactive) added a comment - Fixed in 1.5 and master https://github.com/ezsystems/PlatformUIBundle/commit/fe861ec2ce38fd62cc1a9dc2cc020ea0f8eac6bc (again forgot to send the PR to QA...)
          Hide
          Miguel das Neves Jacinto (Inactive) added a comment -

          QA Approved

          Show
          Miguel das Neves Jacinto (Inactive) added a comment - QA Approved
          Hide
          Miguel das Neves Jacinto (Inactive) added a comment -

          [~damien.pobel@ez.no] could you please add the fixed versions?

          Show
          Miguel das Neves Jacinto (Inactive) added a comment - [~damien.pobel@ez.no] could you please add the fixed versions?
          Hide
          Damien Pobel (Inactive) added a comment -

          [~miguel.jacinto@ez.no] done

          Show
          Damien Pobel (Inactive) added a comment - [~miguel.jacinto@ez.no] done

            People

            • Assignee:
              Unassigned
              Reporter:
              Paulo Nunes (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: