Code macro does not expand if configured to be collapsible.

XMLWordPrintable

    • 7
    • Severity 3 - Minor

      Summary

      {code} macro does not expand if configured to be collapsable. It does not exhibit this behavior in the editor or in the preview from the editor, only after being published.

      Environment

      Cloud

      Steps to Reproduce

      1. create a page and add a code macro to it
      2. edit the macro and check the "collapsable" Check-box and save
      3. Publish the page
      4. attempt to expand the macro by clicking Expand Source

      Expected Results

      The macro expands and shows the code.

      Actual Results

      The Expand is completely non-responsive. Error in Chrome console:

      console.js:26 Error: can't load XRegExp twice in the same frame
          at com.atlassian.confluence.ext.newcode-macro-plugin:syntaxhighlighter.js?externals=__local-default__&…:5
      

      Notes

      N/a

      Workaround

      • Place Code block macro in its default configuration inside of an expand macro.

            Assignee:
            bmccoy
            Reporter:
            Jared Long
            Votes:
            9 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved: