Änderungen von Dokument Confluence bridge for Column

Zuletzt geändert von xwikiadmin am 2025/12/11 07:47

Von Version 3.1
bearbeitet von xwikiadmin
am 2025/05/21 09:22
Änderungskommentar: Migrated property [feature] from class [XWiki.WikiMacroParameterClass]
Auf Version 6.1
bearbeitet von xwikiadmin
am 2025/12/11 07:47
Änderungskommentar: Install extension [com.xwiki.pro:xwiki-pro-macros-confluence-bridges-ui/1.28.5]

Zusammenfassung

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]
Makro-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