Text editor: spell checker + justify text

Topics: General, Visual editor
Sep 22, 2011 at 2:02 PM

Hi,

Is there a way to add a spell checker to the text editor in C1?

Also is it possible to enable a justify text button next to the alignment buttons?

Thanks,

Rob

Coordinator
Sep 23, 2011 at 7:58 AM


>> Also is it possible to enable a justify text button next to the alignment buttons?

Yes, below is an example how to:

1. Find the image icon for the button, for example this - http://www.iconsearch.ru/uploads/icons/silk2/16x16/text_align_justify.png

2. Put this image to the folder ~\Frontend\Config\VisualEditor\Images\

3.  Edit file \Frontend\Config\VisualEditor\commo.xml, locate radiogroup with alignment buttons and add a new one, f.e:

<format id="textalignjustify" label="Full align text" image="" notes="" classes="textalignjustify" selector="p, h1, h2, h3">
        <button label="" image="Images/text_align_justify.png" />
</format>

4. Edit your CSS file, general for Visual Editor and for site, f.e \Frontend\Styles\VisualEditor.common.css and add next  style rule:

.textalignjustify {
   text-align: justify;
}
5. Clear Browser cache and check out page editing.

For more information how to customize Visual Editor read this article - http://docs.composite.net/C1/Console/CustomizingVisualEditor.aspx