Forums

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

How add html-attr. 'id' in Source Editor

Bronislav Essikman
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!
February 20, 2013

<table id="tableId">content</table>

if i put one and press apply, id is not saved.

3 answers

1 vote
Stephen M
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!
August 4, 2017

Sorry to bring up such an old thread but I am trying to do much the same as "Bron" was and I would be happy to use the div macro but I need to use the "confluence table" so the users do not have to enter data in raw HTML table. It is not clear to me how I would wrap the "confluence table" in the div tags? Can someone explain how that would be done?  

1 vote
Bronislav Essikman
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!
February 21, 2013

I have a macro, that calculate table values like Excel, for example SUM(C2:C5). Macro saves table values in array und makes the calculation. As macro parameter may be used table id. Table will be selected by jsoupSelector "table#tableId". Surround with <div id="tableContainerId"> is als solution possible, but insert id directly in source editor is a better way.

It's possible select HTML-Element instead of Jsoup with com.atlassian.confluence.xhtml.api.XhtmlContent??

0 votes
Mirko Skramusky
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.
February 20, 2013

Hi!

What do you want to do with this id? If it's enough to encapsulate your html in another (e.g.) <div>-tag with an id, you can use a surrounding usermacro.

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, team ’25 europe, virtual access, catch team 25 virtually, anytime anywhere, hybrid event, atlassian conference, atlassian learning, ai teamwork, remote attendance, digital access pass, keynote livestream, product announcements, community events

Register for free Team '25 Europe digital access

Get your free all-access digital pass and don’t miss groundbreaking announcements, brand new features and product updates, insight-packed sessions, and exclusive digital content.

Sign up
AUG Leaders

Upcoming Confluence Events