[xwiki-users] WYSIWYG Editor adding toolbar buttons
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 -- 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.
Hello, On Wed, Feb 16, 2011 at 4:14 PM, markblokpoel <[email protected]>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?
Have you take a look on this: http://platform.xwiki.org/xwiki/bin/view/AdminGuide/WysiwygEditor#HConfigura... Raluca.
Best, Mark -- 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. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
On 02/16/2011 04:14 PM, 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.
Fixed.
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')))
You have to also add the "justify" plugin to the list of plugins, as explained for the "color" plugin in the http://platform.xwiki.org/xwiki/bin/view/AdminGuide/WysiwygEditor#HEnabletoo... . Note that we're hoping to add an administration section for the WYSIWYG content editor in XE 3.0 which will ease the configuration. It will looks pretty much like this http://incubator.myxwiki.org/xwiki/bin/view/Improvements/WysiwygEditorConfig . Hope this helps, Marius
However, after service restart the wysiwyg editor is unchanged. Can someone help me out with this?
Best, Mark
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.
Hi all, Thanks for helping me and for fixing the instructions document. I was able to add the plugins to the editor. However, I still cannot center a table on a page.. I am using the default skin that comes with 2.7, does that overwrite the table align style? Thanks again for all the support on XWiki. Best, Mark -- 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.
On Feb 18, 2011, at 10:27 AM, markblokpoel wrote:
Hi all,
Thanks for helping me and for fixing the instructions document. I was able to add the plugins to the editor. However, I still cannot center a table on a page.. I am using the default skin that comes with 2.7, does that overwrite the table align style? Thanks again for all the support on XWiki.
Seems like it's too hard to do this in XWiki... We should fix this somehow. Any idea devs? To answer you mark, see: http://markmail.org/thread/3ut2hvuoldqyrees Thanks -Vincent
participants (5)
-
AngeloG -
Marius Dumitru Florea -
markblokpoel -
Raluca Stavro -
Vincent Massol