Änderungen von Dokument Button
Zuletzt geändert von xwikiadmin am 2024/06/24 15:04
Von Version 2.1
bearbeitet von xwikiadmin
am 2023/04/25 11:27
am 2023/04/25 11:27
Änderungskommentar:
Install extension [com.xwiki.pro:xwiki-pro-macros/1.7.1]
Auf Version 4.1
bearbeitet von xwikiadmin
am 2023/10/26 10:38
am 2023/10/26 10:38
Änderungskommentar:
Install extension [com.xwiki.pro:xwiki-pro-macros/1.12]
Zusammenfassung
-
Seiteneigenschaften (1 geändert, 0 hinzugefügt, 0 gelöscht)
-
Objekte (1 geändert, 0 hinzugefügt, 0 gelöscht)
Details
- Seiteneigenschaften
-
- Versteckt
-
... ... @@ -1,1 +1,1 @@ 1 - false1 +true
- XWiki.WikiMacroClass[0]
-
- Makro-Code
-
... ... @@ -46,6 +46,12 @@ 46 46 #set ($darkenedColors = []) 47 47 #darken($colors, $darkenedColors) 48 48 {{html clean=false}} 49 + ## #124: The Button macro deletes followup content when inserted from wysiwyg 50 + ## Wrap the macro output inside a block element if the context where the macro is inserted is not inline, e.g. if the 51 + ## macro is inserted between paragraphs rather than between the text of a paragraph. Otherwise the generated HTML is 52 + ## invalid which breaks the WYSIWYG editing because the browser tries to fix the invalid HTML and messes up the macro 53 + ## output markers that protect the macro output. 54 + #if (!$wikimacro.context.isInline())<p>#end 49 49 <a href="$url" #if($newTab == 'true')target="_blank"#end> 50 50 <button 51 51 style=" ... ... @@ -59,6 +59,7 @@ 59 59 $label 60 60 </button> 61 61 </a> 68 + #if (!$wikimacro.context.isInline())</p>#end 62 62 {{/html}} 63 63 #end 64 64 {{/velocity}}