Uncaught DOMException when clicking on macros or images inside the editor

XMLWordPrintable

    • 4
    • Severity 3 - Minor
    • 1

      Summary

      A Uncaught DOMException is thrown in the browser console when clicking on macros or images inside the editor.

      Steps to Reproduce

      1. Open the browser console inside the developer tools
      2. Create a new page
      3. Add a macro (e.g. Page Tree) or insert an image
      4. Click on the macro or image so the Edit/Remove pop-up is shown

      Expected Results

      • In the case of macros, the pop-up is shown and no errors are logged 
      • In the case of images, the pop-up is shown and image effects are available for selection

      Actual Results

      The pop-up is shown, but we see the following error in the browser console for macros:

      Uncaught DOMException: Failed to execute 'setBaseAndExtent' on 'Selection': There is no child at offset 1.
          at Editor.<anonymous> (http://quicksilver/confluence/s/3a2a4d76250fb6ee9ac2a7bbe460209c-CDN/en_US/7201/e9483755159fbecaf5aef9b1eebd094ee4430d2f/d9f68a0b30f8b34cf0ddc6918e0cbc04/_/download/contextbatch/js/editor,atl.general,macro-browser,main,page,-_super/batch.js?analytics-enabled=true&analytics-uploadable=true&anonymous-access-enabled=true&build-number=7201&confluence.table.resizable=true&confluence.view.edit.transition=true&healthcheck-resources=true&hostenabled=true&is-server-instance=true&isSystemAdministrator=true&locale=en-US:2016:408)
          at Dispatcher.dispatch (http://quicksilver/confluence/s/3a2a4d76250fb6ee9ac2a7bbe460209c-CDN/en_US/7201/e9483755159fbecaf5aef9b1eebd094ee4430d2f/d9f68a0b30f8b34cf0ddc6918e0cbc04/_/download/contextbatch/js/editor,atl.general,macro-browser,main,page,-_super/batch.js?analytics-enabled=true&analytics-uploadable=true&anonymous-access-enabled=true&build-number=7201&confluence.table.resizable=true&confluence.view.edit.transition=true&healthcheck-resources=true&hostenabled=true&is-server-instance=true&isSystemAdministrator=true&locale=en-US:1998:8)
          at DOMUtils.b (http://quicksilver/confluence/s/3a2a4d76250fb6ee9ac2a7bbe460209c-CDN/en_US/7201/e9483755159fbecaf5aef9b1eebd094ee4430d2f/d9f68a0b30f8b34cf0ddc6918e0cbc04/_/download/contextbatch/js/editor,atl.general,macro-browser,main,page,-_super/batch.js?analytics-enabled=true&analytics-uploadable=true&anonymous-access-enabled=true&build-number=7201&confluence.table.resizable=true&confluence.view.edit.transition=true&healthcheck-resources=true&hostenabled=true&is-server-instance=true&isSystemAdministrator=true&locale=en-US:2312:155)
          at HTMLDocument.e (http://quicksilver/confluence/s/3a2a4d76250fb6ee9ac2a7bbe460209c-CDN/en_US/7201/e9483755159fbecaf5aef9b1eebd094ee4430d2f/d9f68a0b30f8b34cf0ddc6918e0cbc04/_/download/contextbatch/js/editor,atl.general,macro-browser,main,page,-_super/batch.js?analytics-enabled=true&analytics-uploadable=true&anonymous-access-enabled=true&build-number=7201&confluence.table.resizable=true&confluence.view.edit.transition=true&healthcheck-resources=true&hostenabled=true&is-server-instance=true&isSystemAdministrator=true&locale=en-US:2145:195)
      

      or for images:

      Uncaught DOMException: Failed to execute 'setBaseAndExtent' on 'Selection': There is no child at offset 1. 

      Workaround

      This is a bug in the TinyMCE editor, fixed in TinyMCE version 5.2.3 

      Upgrade to Confluence 7.11 or higher to use the latest editor which includes this TinyMCE fix.

            Assignee:
            Unassigned
            Reporter:
            Bernardo Andreeti
            Votes:
            11 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated: