Last modified by Frank Fock on 2026/04/03 11:52

From version 1.1
edited by Frank Fock
on 2025/01/26 23:11
Change comment: Install extension [com.xwiki.pro:xwiki-pro-macros-confluence-bridges-ui/1.25.5]
To version 7.1
edited by Frank Fock
on 2026/04/03 11:52
Change comment: Install extension [com.xwiki.pro:xwiki-pro-macros-confluence-bridges-ui/1.30.1]

Summary

Details

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