The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

HTML macro and <script> tag on confluence mobile

Mateusz Sz
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!
November 7, 2017

Hello there,

I've used the HTML macro and put inside some jQuery code in <script> and some css in <style>. It works well on desktop version, however when I switch to confluence mobile, the <script> tag vanishes from DOM, when the <style> sits on its place. Why this behaviour happen? Can I turn it off somehow, so my script tag stays on place?

Thanks for answers

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
itechpros
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!
January 6, 2018

We are also having that problem.  Docs say that User Macros are automatically included on Confluence Mobile.  They render in all desktop versions, including Safari, however don't render on actual mobile devices.  The script tag just seems to get striped out.

 

Seems this is a known issue for a long time: https://jira.atlassian.com/browse/CONFSERVER-38647

TAGS
AUG Leaders

Atlassian Community Events