Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-67900

Unable to Preview Excel Document using Excel Macro in New Editor

    XMLWordPrintable

Details

    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

      • Cloud with the New Confluence Editor
      • Cloud with old confluence edior

        Steps to Reproduce

      1. Create a New Page
      2. Upload an Office Excel Macro
      3. Add an Office Excel Macro
      4. 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)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              scranford Shawn C
              Votes:
              11 Vote for this issue
              Watchers:
              22 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: