Details
-
Bug
-
Resolution: Cannot Reproduce
-
Medium
-
18
-
Severity 3 - Minor
-
0
-
Description
Issue Summary
Users that are attaching Office Excel files to their Confluence pages are unable to preview the Excel Document while using the New Editor/old editor.
Environment
- Create a New Page
- Upload an Office Excel Macro
- Add an Office Excel Macro
- Input the Page Name, select the File Name, and click the Preview button in the macro window
Expected Results
Excel File is previewed in the Macro and we will be able to insert the macro using insert button.
Actual Results
No Preview is shown,will not be able to insert the macro using insert button.
Browser Console log shows:
overrides.js:74 Uncaught TypeError: Cannot read property 'getCurrentTitle' of undefined at e.beforeParamsRetrieved (overrides.js:74) at Object.q [as getMacroDefinitionFromForm] (com.atlassian.confluence.plugins.confluence-macro-browser:macro-browser-js.js?externals=__local-default__&locale=en-US:74) at Object.previewMacro (com.atlassian.confluence.plugins.confluence-macro-browser:macro-browser-js.js?externals=__local-default__&locale=en-US:91) at Object.a.previewMacro (com.atlassian.confluence.plugins.confluence-macro-browser:macro-browser-js.js?externals=__local-default__&locale=en-US:129) at HTMLAnchorElement.<anonymous> (com.atlassian.confluence.plugins.confluence-macro-browser:macro-browser-js.js?externals=__local-default__&locale=en-US:115) at HTMLAnchorElement.dispatch (jquery-min.js:1) at HTMLAnchorElement.a (jquery-min.js:1)
Notes
Preview seems to work while using the Old Editor and if No Page Name is Specified (in the New Editor)
If the Excel Macro is added immediately to the page after Drag and Dropping the Excel file, the preview will not render. User will need to first publish the page after uploading the Excel file and then edit the page to add the macro.
Workaround
Leave the "Page Name" field blank and/or insert the Macro and the Editor should render a preview (only after the page has been published after the attachment has been uploaded)