Last modified by Scott Gagan on 2025/08/19 20:33

From version 1.1
edited by admin
on 2024/10/04 17:40
Change comment: Install extension [com.xwiki.pro:xwiki-pro-macros-confluence-bridges-ui/1.22.3]
To version 7.1
edited by Scott Gagan
on 2025/08/19 20:33
Change comment: Install extension [com.xwiki.pro:xwiki-pro-macros-confluence-bridges-ui/1.27.3]

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.admin
1 +XWiki.scottg
XWiki.StyleSheetExtension[0]
Code
... ... @@ -1,4 +1,3 @@
1 1  .macro-column {
2 - display: table-cell;
3 3   padding: 5px;
4 4  }
XWiki.WikiMacroClass[0]
Macro code
... ... @@ -4,9 +4,12 @@
4 4   #set ($style = '')
5 5   #set ($extraCssClass = 'withWidth')
6 6   #if ("$!xcontext.macro.params.width" != '')
7 - #set ($style = "style='width: $xcontext.macro.params.width'")
7 + #set ($escapedWidth = $services.rendering.escape($xcontext.macro.params.width, 'xwiki/2.1'))
8 + #set ($style = "style='width: $escapedWidth'")
9 + #else
10 + #set ($style = "style='width:100%'")
8 8   #end
9 - (% class="macro-column" data-width="$xcontext.macro.params.width" $style %)(((
12 + (% class="macro-column" data-width="$escapedWidth" $style %)(((
10 10   {{wikimacrocontent /}}
11 11   )))
12 12  #end
Default categories
... ... @@ -1,0 +1,1 @@
1 +Confluence