Any confluence limitations with JavaScript code I should be aware of?

Lachlan Moore September 1, 2018
I have been trying to add a google chart into a confluence page and it has given me some trouble, where it will not work with other JavaScript code, or breaks other JavaScript code. Sometimes it doesn’t show the chart it only shows the actual JavaScript code within the div.
Thanks.

1 answer

0 votes
Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 4, 2018

Hi Lachlan,

We do have this article below regarding use of Javascript in Confluence:

A few things to keep in mind:

Confluence provides the ability to include JavaScript codes either inside the Custom HTML or HTML macro. Applying the JavaScript inside the Custom HTML will enforce the script to be loaded in site-wide. However, applying the JavaScript inside the HTML macro will only trigger the script in a specific page in which the macro is placed

I would recommend reviewing the entirety of that article, and if you have any specific examples you'd like to share with us, please do, and we can help you out.

Regards,

Shannon

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events