Modifications pour le document Expand
Modifié par superadmin le 21/07/2025 - 08:55
Depuis la version 7.1
modifié par Admin
sur 10/02/2025 - 13:08
sur 10/02/2025 - 13:08
Commentaire de modification :
Install extension [com.xwiki.pro:xwiki-pro-macros-ui/1.26.2]
À la version 5.1
modifié par superadmin
sur 06/10/2024 - 00:00
sur 06/10/2024 - 00:00
Commentaire de modification :
Install extension [com.xwiki.pro:xwiki-pro-macros-ui/1.22.3]
Résumé
-
Propriétés de la Page (1 modifications, 0 ajouts, 0 suppressions)
-
Objets (3 modifications, 0 ajouts, 0 suppressions)
Détails
- Propriétés de la Page
-
- Auteur du document
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki.admin 1 +XWiki.superadmin
- XWiki.StyleSheetExtension[0]
-
- Code
-
... ... @@ -10,7 +10,7 @@ 10 10 11 11 .confluence-expand-macro .panel-title{ 12 12 padding: @panel-heading-padding; 13 - display: flex;13 + display: block; 14 14 } 15 15 16 16 .confluence-expand-macro .panel-body { ... ... @@ -23,10 +23,6 @@ 23 23 24 24 .confluence-expand-macro summary:hover { 25 25 cursor: pointer; 26 -} 27 - 28 -.panel-title:hover .title-text { 29 - cursor: pointer; 30 30 text-decoration: underline; 31 31 } 32 32 ... ... @@ -35,11 +35,6 @@ 35 35 border: none; 36 36 } 37 37 38 -.confluence-expand-macro.panel.panel-default .panel-body ul { 39 - list-style-type: revert; 40 - padding-left: revert; 41 -} 42 - 43 43 .confluence-expand-macro.panel { 44 44 background: unset; 45 45 }
- XWiki.WikiMacroClass[0]
-
- Code de la macro
-
... ... @@ -1,28 +1,6 @@ 1 1 {{velocity output="false"}} 2 2 #macro (executeMacro) 3 - ## To avoid an issue regarding {{wikimacroparameter}} and {{wikimacrocontent}} that fail to render when in 4 - ## edit mode while inside a HTML macro, we need to manually write the HTML by using XWiki syntax. This way, 5 - ## while the macro will always be expanded when in edit mode, the user will be able to modify the text inline. 6 - #set ($targetSyntaxId = $wikimacro.context.transformationContext.targetSyntax.type.id) 7 7 #set ($discard = $xwiki.ssx.use('Confluence.Macros.Expand')) 8 - #if ($targetSyntaxId == 'annotatedhtml' || $targetSyntaxId == 'annotatedxhtml' || 9 - $request.outputSyntax == 'annotatedhtml') 10 - (% class="confluence-expand-macro panel panel-default" %) 11 - ((( 12 - ((( 13 - (% class="panel-title" %) 14 - ((( 15 - (% class="glyphicon glyphicon-menu-down" aria-hidden="true" %) 16 - ((())) 17 - {{wikimacroparameter name='title' /}} 18 - ))) 19 - ))) 20 - (% class="panel-body" %) 21 - ((( 22 - {{wikimacrocontent /}} 23 - ))) 24 - ))) 25 - #else 26 26 #set ($opened = $xcontext.action == 'edit' || $xcontext.action == 'export' || $wikimacro.parameters.expanded) 27 27 {{html clean="false" wiki="true"}} 28 28 <details class="confluence-expand-macro panel panel-default" #if ($opened)open#end> ... ... @@ -36,10 +36,8 @@ 36 36 #set ($title = $services.localization.render("rendering.macro.expand.defaultexpandtitle")) 37 37 #end 38 38 #end 39 - <span class="title-text"> 40 - $services.rendering.escape($escapetool.xml($title), $xwiki.currentContentSyntaxId) 41 - </span> 42 - </span> 17 + $services.rendering.escape($escapetool.xml($title), $xwiki.currentContentSyntaxId) 18 + </span> 43 43 </summary> 44 44 <div class="panel-body"> 45 45 ... ... @@ -48,7 +48,6 @@ 48 48 </div> 49 49 </details> 50 50 {{/html}} 51 - #end 52 52 #end 53 53 {{/velocity}} 54 54 - Disponibilité du contenu de la macro
-
... ... @@ -1,1 +1,1 @@ 1 - Mandatory1 +Optional
- XWiki.WikiMacroParameterClass[0]
-
- Valeur par défaut du paramètre
-
... ... @@ -1,1 +1,0 @@ 1 -Click here to expand...