On 10 Apr 2016, at 22:18, Andrew Kuang
<afkuang(a)gmail.com> wrote:
Hi, I had a question regarding styling Blocks (ParagraphBlock, TextBlock,
etc). I noticed in the documentation of the code
(
https://github.com/xwiki/xwiki-rendering/blob/master/xwiki-rendering-api/sr…)
that we could use the parameters map; however, it does not seem to be
working. I've tried to find more documentation or use cases/examples online
with no luck. Could someone provide more context on this? Thank you!
Yes, any Block can have parameters. How they are interpreted depend on the Renderer used.
You can check the XWiki Syntax 2.1 Renderer for example. For example the beginFormat()
method which corresponds to the event sent at the beginning of a FormatBlock does this: