20 Aug
2013
20 Aug
'13
6:05 a.m.
Valdis, while this macro is probably useful for syntax-based-input, do I mistake or the WYSIWYG editor is doing this (and more) already when you insert an image? I have to say, I do not see this as unusable at all, contrary to what Crocket says. Paul Le 20 août 2013 à 08:00, Valdis Vītoliņš a écrit :
To handle pictures better, I use following macro:
#macro(picture $img, $width) <a href="/xwiki/bin/download/$doc.space/$doc.name/$img">{image:$img| width=$width}</a>#end
Width parameter is optional, fixed width or percents can be used. And user is able to click on picture to see bigger picture.
See http://platform.xwiki.org/xwiki/bin/view/DevGuide/WikiMacroTutorial for more info about macros.