Forums

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

Add attributes to elements

Alex Feldman
Contributor
April 17, 2014

When I try to add attributes to elements in source mode and hit Apply they get stripped. I even tried to add simple elements like <div id="myid"></div> and it still saves like <div></div>

How can I add attributes to elements?

1 answer

1 accepted

1 vote
Answer accepted
Davin Studer
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 21, 2014

Can't through the editor. Annoying I know. You could use the html macro and put the html in by hand or you could add them in with JS after the page is rendered.

Alex Feldman
Contributor
April 27, 2014

html macro wouldn't modify the standard editor elements outside the macro. If I add a macro inside an element then it creates all the macro tags that look ugly and require extra parsing to get a hold of. Annoying, I agree.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events