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

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

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

3 answers

This widget could not be displayed.

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.

This widget could not be displayed.

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??

This widget could not be displayed.

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?  

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published 7 hours ago in Bitbucket

Branch Management with Bitbucket

As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...

36 views 0 5
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you