Rich Text Editor demo

This example show how to use include parameter with the RichTextEditor mixin.
This parameter is used as a comma-separated list of button names to be retained for Rich Text Editor toolbar.
In this example, we build a custom toolbar with only bold, italic, underline, justifyleft, justifycenter, justifyright buttons.
Notice the separator button name used to add a separator between buttons.

Available button names are:
bold, italic, underline, justifyleft, justifycenter, justifyright, createlink, undo, redo, insertunorderedlist, insertorderedlist, heading, forecolor, backcolor and separator.

In Action

Submitted text :

TML Source code

            <t:textarea t:id="rte" value="rte" t:mixins="exanpe/RichTextEditor" t:title="literal:Rich Text Editor" 
                        t:include="bold, italic, underline, separator, justifyleft, justifycenter, justifyright">
            <br />
            <p>Submitted text :</p>
            <t:outputraw value="rte" />

Java code

        private String rte;