5 Replies Latest reply on Oct 1, 2009 6:42 AM by ilya_shaikovsky

    rich:editor help!!!

    armdev

      Hi, I use rich:editor and have config file

      theme="advanced"
      plugins="insertdatetime, save, paste"
      theme_advanced_buttons1 : "bold,italic,underline,strikethrough,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,styleselect,formatselect,fontselect,fontsizeselect"
      theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,separator,search,replace,separator,bullist,numlist,separator,outdent,indent,blockquote,separator,undo,redo,separator,link,unlink,anchor,image,cleanup,code,separator,insertdate,inserttime,preview,separator,forecolor,backcolor"
      theme_advanced_toolbar_location : "top"
      theme_advanced_toolbar_align : "left"
      


      I could not set default font and font size. How can I do it? Please help me.
      I do not know how can I configure it for using default font like tahoma, and font size 12.


       <rich:editor autoResize="true"
       title="#{msgs.enterSubject}" required="true" value="#{CategoriesBean.subject}" configuration="#{RichEditorController.currentConfiguration}"
       width="360" height="80">
      
       </rich:editor>
      


        • 1. Re: rich:editor help!!!
          ilya_shaikovsky

          check tinyMCE manual on that. We not changed anything in the widget - just wrapped it to component. So the same CSS and configuration params which described at tiny resources should be used in such cases

          • 2. Re: rich:editor help!!!
            armdev

            Have you an example, if i try to set font default, have no result

            • 3. Re: rich:editor help!!!
              zeltner

              in the TinyMCEConfig.properties add:

              content_css="editor.css"


              and then in the editor.css you can define:

              .mceContentBody {
               font-family : tahoma;
               font-size : 12px;
              }


              hope that helps.

              /Markus

              • 4. Re: rich:editor help!!!
                armdev

                I have changed configuration, but it did not help, i used
                content_css : "/css/edit.css" or content_css : "../css/edit.css"

                css/edit.css

                .mceContentBody {
                font-family : tahoma;
                font-size : 12px;
                }


                theme="advanced"
                plugins="insertdatetime, save, paste"
                theme_advanced_buttons1 : "bold,italic,underline,strikethrough,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,styleselect,formatselect,fontselect,fontsizeselect"
                theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,separator,search,replace,separator,bullist,numlist,separator,outdent,indent,blockquote,separator,undo,redo,separator,link,unlink,anchor,image,cleanup,code,separator,insertdate,inserttime,preview,separator,forecolor,backcolor"
                content_css : "/css/edit.css"
                theme_advanced_toolbar_location : "top"
                theme_advanced_toolbar_align : "left"
                
                


                I do not know what is the problem.

                Who have working example.

                • 5. Re: rich:editor help!!!
                  ilya_shaikovsky

                  if the CSS was actually loaded? check in fireBug Net tab.