I have a problem with customization of rich:editor in 4.1.0 of RichFaces. Actually, I did the customization using the example from live demo. In example the customization is done by using facet. Live demo example is something like this:
<
f:facet
name
=
"config"
>
toolbar: 'custom',
language: '#{editorBean.language}',
startupFocus: true,
toolbar_custom:
[
{ name: 'document', items : [ 'NewPage','Preview' ] },
{ name: 'clipboard', items : [ 'Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo' ] },
{ name: 'editing', items : [ 'Find','Replace','-','SelectAll','-','Scayt' ] },
{ name: 'insert', items : [ 'Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak'
,'Iframe' ] },
'/',
{ name: 'styles', items : [ 'Styles','Format' ] },
{ name: 'basicstyles', items : [ 'Bold','Italic','Strike','-','RemoveFormat' ] },
{ name: 'paragraph', items : [ 'NumberedList','BulletedList','-','Outdent','Indent','-','Blockquote' ] },
{ name: 'links', items : [ 'Link','Unlink','Anchor' ] },
{ name: 'tools', items : [ 'Maximize' ] }
]
</
f:facet
>
I want use config attribute in rich:editor not in facet. Can anyone hel me?