Richfaces 4: How to change ribbon options of a <rich:editor>

361 views Asked by At

I am using <rich:editor> in my application and I need customize the ribbon options of the editor(I want to have only some option and omit the others). Is anybody know where will I get all possible values for configuration ?

And the following is what I tried till now

<f:facet name="config">
                toolbar: 'custom',
                language: '#{editorBean.language}',
                startupFocus: true,
                toolbar_custom:
                    [
                        { name: 'basicstyles', items : ['Bold','Italic'] },
                        { name: 'clipboard', items : [ 'Paste','PasteFromWord'] },
                        { name: 'basicstyles', items : ['Underline'] },
                        { name: 'paragraph', items : [ 'NumberedList','BulletedList','-','Outdent','Indent'] },
                        { name: 'paragraph', items : [ 'NumberedList','BulletedList','-','Outdent','Indent'] },
                    ]
</f:facet>
1

There are 1 answers