Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

HTML Macro with css and JS not working. Edited

Hi,

we're running confluence 7.11.1 with activated HTML Makro.
When i insert a <div> Tag combined with some CSS (<style>) and JS effects (<script>) to change the display type, everything looks perfect in the preview. But when i hit save, all CSS and JS elements are gone. Back to the edit mode, the code is still there and the preview looks as intented...

I also tried to implement it as an user macro. Preview looks fine, saved page is without CSS/JS.

Does anyone know this problem and has a workaround or solution?

1 answer

1 accepted

0 votes
Answer accepted

problem found... i've removed the <html> and <head> tags and now it's working...

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence

🏑 Atlympic Event: Confluence

Hello Community!  Quick disclaimer: We are running a contest on Community (The Atlympics!) from July 23rd - August 8th of 2021. If you are interested in participating in this contest (prizes! ...

185 views 6 8
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you