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

    XMLWordPrintable

    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
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              paulo.nunes-obsolete@ez.no Paulo Nunes (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: