3 Replies Latest reply on Nov 25, 2011 4:21 PM by lfryc

    Problem with rich:editor

    dostybear

      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

        • 1. Re: Problem with rich:editor
          hantsy

          I also encountered problem with rich:editor, some time it displayed and some time it did not display...

          I browsed the richfaces showcase, I found the same problem when I switched the tabs...

          • 2. Re: Problem with rich:editor
            lfryc

            Hey, dostybear, the only manipulation with config what RichFaces do is placing it in appropriate constructor of CKEditor.

             

            It does mean that if they are bugs with configuration, it's either the syntax of config (in most cases discoverable by looking into dev tools error console) or bug in CKEditor (which should be reproducible on vanilla CKEditor).

            • 3. Re: Problem with rich:editor
              lfryc

              Hantsy,

               

              could you please provide us with more info on browser you have used and operation system?

               

              I haven't seen such issues before neither it has been reported.