3 Replies Latest reply on Nov 25, 2011 4:21 PM by Lukáš Fryč

    Problem with rich:editor

    dostybear Newbie

      Hi, I'm trying to use the component rich:editor (from version 4.1.0.20110910-M2). I'd like to remove the elementspath and the resize button. I found that you can config ckeditor with config.removePlugins = 'elementspath'; config.resize_enabled = false; but in rich:editor it doesn't work. My code is the following:

       

       

      <rich:editor toolbar="Toolbar" value="#{newsBean.notizia.testo}"
                                       title="Nuovo inserimento" >
                              <f:facet name="config">
                                  toolbar: "Toolbar",
                                  toolbar_Toolbar:
                                  [
                                  { name: 'basicstyles', items : [ 'Bold','Italic','Underline'] },
                                  { name: 'paragraph', items : [ 'NumberedList','BulletedList'] },
                                  { name: 'links', items : [ 'Link','Unlink'] }
                                  ],
                                  config: "Element",
                                  config_Element:
                                  [
                                  { resize_enabled : false },
                                  { removePlugins  : 'elementspath'}
                                  ]
                              </f:facet>
      
                          </rich:editor>
      

       

      Am I wrong or is it some kind of bug?

       

      Thank you