Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Lachlan Moore
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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
SMS
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