Rich Text Editor demo

Description
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:form>
            <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">
            </t:textarea>
            <t:submit/>
            <br />
            <p>Submitted text :</p>
            <t:outputraw value="rte" />
        </t:form>
	



Java code

        @Persist(PersistenceConstants.FLASH)
        @Property
        private String rte;