markblokpoel wrote:
Hi,
The wysiwyg editor configuration document, at least for me, was difficult to comprehend. I was looking for a way to center tables/text/images on my xwiki, but failed to get the result using xwiki syntax2. So, I wanted to add the justifyleft, justifycenter, justifyright and justifyfull buttons to the wysiwyg editor, so my users don't have to use wiki syntax. I found that the syntax in the templates/macros.vm file is completely different from what is described in the configuration document, but still understandable. So I added the buttons in the following line:
#set($ok = $parameters.put('toolbar', $xwiki.getXWikiPreference('wysiwyg.toolbar', 'bold italic underline strikethrough | justifyleft justifycenter justifyright justifyfull | subscript superscript | unorderedlist orderedlist | outdent indent | undo redo | format | hr symbol | paste')))
However, after service restart the wysiwyg editor is unchanged. Can someone help me out with this?
Best, Mark
Check if you added the justify plugin. You need to add 'justify' (wiìth no quotes) in the line: #set($ok = $parameters.put('plugins', $xwiki.getXWikiPreference('wysiwyg.plugins', "submit line separator embed text valign list indent history format symbol link image table macro import color font justify#if($full && $request.sync) sync#end"))) (the line attached should include all pulgins, but you can select those you wish, according to the instruction given in the configuration document) Anf of course you must restart the server or the services. regards Angelo -- View this message in context: http://xwiki.475771.n2.nabble.com/WYSIWYG-Editor-adding-toolbar-buttons-tp60... Sent from the XWiki- Users mailing list archive at Nabble.com.