-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Low
-
Affects Version/s: 6.3.3, 7.4.6
-
Component/s: Core - Macros Platform
-
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
- Open the browser console inside the developer tools
- Create a new page
- Add a macro (e.g. Page Tree) or insert an image
- 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.
- is related to
-
CONFCLOUD-56927 Javascript errors in editor when editing a macro
-
- Closed
-