Changes for page MentionsMacro
Last modified by Cyril Boillat on 13/05/2024
From version 4.1
edited by Cyril Boillat
on 11/05/2024
on 11/05/2024
Change comment:
Migrated property [type] from class [XWiki.WikiMacroParameterClass]
To version 2.1
edited by Cyril Boillat
on 30/10/2022
on 30/10/2022
Change comment:
Migrated property [priority] from class [XWiki.WikiMacroClass]
Summary
-
Objects (2 modified, 0 added, 0 removed)
Details
- XWiki.JavaScriptExtension[0]
-
- Code
-
... ... @@ -82,7 +82,7 @@ 82 82 editor.once('afterInsertHtml', function () { 83 83 editor.execCommand('xwiki-macro-insert', { 84 84 name: 'mention', 85 - inline: 'enforce',85 + inline: true, 86 86 parameters: { 87 87 reference: param.id, 88 88 style: 'FULL_NAME', ... ... @@ -98,7 +98,7 @@ 98 98 } 99 99 100 100 function updateConf(config, name) { 101 - const newConf = config || {};101 + const newConf = config; 102 102 newConf.mentions = newConf.mentions || []; 103 103 newConf.mentions.push(confMentions(name)); 104 104 return newConf;
- XWiki.WikiMacroClass[0]
-
- Macro code
-
... ... @@ -11,8 +11,6 @@ 11 11 #end 12 12 #set ($link = $xwiki.getURL($reference.reference, 'view')) 13 13 {{html}} 14 -<a id="$escapetool.xml($anchor)" class="$stringtool.join($cssClasses, ' ')" data-reference="$escapetool.xml($services.model.serialize($reference.reference, 'default'))" href="$escapetool.xml($link)"> 15 - $escapetool.xml($content) 16 -</a> 14 +<a id="$anchor" class="$stringtool.join($cssClasses, ' ')" data-reference="$services.model.serialize($reference.reference, 'default')" href="$link">$content</a> 17 17 {{/html}} 18 18 {{/velocity}} - Default category
-
... ... @@ -1,1 +1,0 @@ 1 -Notifications - Macro description
-
... ... @@ -1,1 +1,1 @@ 1 -Insert sa user mention.1 +Insert a user mention.