On 07/26/2011 08:32 PM, Campbell, John wrote:
Hi,
> On 07/26/2011 07:49 PM, Campbell, John
wrote:
> Hi, folks.
> I’m experimenting with a standalone installation of XE3.1 and trying to increase the
control that users would have over the appearance of the pages they add.
> I’d love to do this primarily with the WYSIWYG editor, since that would be the most
user-friendly avenue in my opinion. So I tried to add the “font” and “style” plugins and
then make the associated changes in the tool bar, but nothing I do seems to have any
effect on the WYSIWYG editor. When I leave the WYSIWYG Editor administration page and then
return, my changes are still there… they just don’t appear in the editor itself.
> I’ve reviewed the WYSIWYG Editor Configuration page in the documentation, but nothing
there has helped me. I’ve even taken a look in the templates/macros.vm file, but could not
locate any of the lines the WYSIWYG Editor Configuration page said I should see.
> Can someone help me out?
For enabling the font name and the font size you
have to add "font" to
the list of plugins and add "fontname" and "fontsize" to the tool
bar.
For enabling custom styles you have to add "style" to the list of
plugins, "stylename" to the tool bar and then configure the styles at
the bottom of the configuration section. XWiki Enterprise doesn't
provide any default styles so you have to add some. The style name is a
CSS class name from your skin and the style label is the text that
appears in the styles list box on the WYSIWYG editor tool bar.
Don't forget to save after updating the
configuration.
Hope this helps,
Marius
---
Thanks, Marius. I was able to get the changes to appear in the editor... that's
fantastic.
You mentioned that I would have to add some styles -
what is the most efficient process to do that? Can it be done from the global
administration interface?
I really appreciate the help.
In order to add a new style to the "Styles" list box from the WYSIWYG
editor tool bar you have to:
(1) Define the style in your skin:
.important {
color: red;
font-size: larger;
}
I think the best option is to create a wiki page with a
StyleSheetExtension object that is applied to the entire wiki, I'm not a
skin expert though :) .
(2) Register the style in the WYSIWYG editor administration section:
Style name: important
Style label: Important
Inline style: whether the style should be applied only to the selected
text (true) or to the entire block of text (e.g. paragraph) that
contains the selected text (false)
Hope this helps,
Marius
John
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users