On 10/14/2011 05:37 AM, Marius Dumitru Florea wrote:
Hi Richard,
On Thu, Oct 13, 2011 at 6:05 PM, goldring, richard
<richard.goldring(a)uk.thalesgroup.com> wrote:
Hi,
My users want to be able to change the font size and type on their wiki
pages to make their text stand out - how can this be done? Can the WYSIWYG
editor can style pull down menu be tweaked to add text options for
different font sizes and styles or is there a macro for this? Are there any
plans to add font editing functionality to the WYSIWYG editor as say like
you get in a word processor.
Changing font size and font name from the WYSIWYG editor is possible
since a long time, but is not enabled by default. How to enable it
depends on which version of XWiki Enterprise you are using. See
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/WysiwygEditor .
Starting with XWiki Enterprise 3.0 there is an administration section
for the WYSIWYG editor from where you can enable and configure the
font plugin. The steps are:
(1) Add "font" to the list of plugins
(2) Add "fontsize" and "fontname" to the tool bar
(3) Add/remove font names and font sizes as you wish
Note that if you want to have a consistent look across your wiki you
should check the custom styles feature. See the end of the WYSIWYG
editor administration section. It allows you to define common CSS
class names (style names like "important", "todo", etc.) that your
users can apply by selecting some text and choosing a style name from
a list box on the WYSIWYG editor tool bar. The steps to enable this
feature are:
(1) Add "style" to the list of plugins
(2) Add "styleNames" to the tool bar
(3) Register CSS class names at the end of the WYSIWYG editor
administration section.
I'll pitch in with a non-technical advice: while content writers would
like to be able to "make their text stand out", this is in general a bad
thing. Web Pages made to stand out do stand out, only not as important
text, but as ugly pages; few things are uglier than text written as if
we're still in 1998 using MSWord, with big red text, space indentation,
and lots of newlines to "keep the important text apart". Your users
should concentrate on the content, not on the presentation.
A good middle ground is to use the info, warning, and error macros. If
your users have valid use cases for different styles, then you should
configure the alternative presented by Marius, and provide a few custom
styles (since it's harder to insert the above macros, you could also
define custom styles for "info" and "warning").
Hope this helps,
Marius
--
Sergiu Dumitriu
http://purl.org/net/sergiu/