Rich Text Editor demo

Description
This example show how to use exclude parameter with the RichTextEditor mixin.
This parameter is used as a comma-separated list of button names to be removed from the default editor toolbar.
In this example, we excluded forecolor, and backcolor buttons.

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



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



Java code

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