Uploaded image for project: 'Confluence Server'
  1. Confluence Server
  2. CONFSERVER-11540

Resources requested by macros should be rendered in exports and notifications and other situations

    XMLWordPrintable

    Details

    • Feedback Policy:
      We collect Confluence feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      Description

      NOTE: This suggestion is for Confluence Server. Using Confluence Cloud? See the corresponding suggestion.

      CONF-7409 was implemented for Confluence 2.8, allowing macros to use #requireResource (or WebResourceManager.requireResource()) to declare which CSS and JS resources they required when the page was built.

      This functionality doesn't currently extend to including these resources in the following situations:

      preview in the editor: need to get the resources via AJAX from the server and include them in the page dynamically (see CONF-11982)

      • exports and notifications: use a hard-coded list of resources generated by /styles/combined.css?forWysiwyg=true
      • rich-text editor (potentially): uses same hard-coded list as exports and notifications.

      (The rich-text editor is less important because only Confluence macros typically render content that needs to be styled there. Most just appear as {macro}...{macro}.)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              matt@atlassian.com Matt Ryall
              Votes:
              4 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: