Using ckeditor in jsf page

前端 未结 2 484
刺人心
刺人心 2021-01-22 23:20

How do I use a custom CKEditor in a jsf page ? I\'m having lots of trouble trying to implement it. What I did:

  • I made a custom CKEditor with the ckEditor builder
2条回答
  •  深忆病人
    2021-01-22 23:56

    I have used it in JSF Richfaces. The standard richfaces comes with CKEditor 3.3, i wanted 4.0 so i installed also a custom CKEditor.

    For me the only thing worked was to config the editor on the fly.

    What i did:

    XHTML: Start page

    ....
    // setting 'root' path of the CKEditor on the landing page (before the actual editor page)
    // Maybe you can let this line point to your own custom settings?
    window.CKEDITOR_BASEPATH = '#{request.contextPath}/org.richfaces.resources/javax.faces.resource/ckeditor/';
    ....
    

    XHTML: editor page

                    ....
                    
    

    ....

    
                        
    

    I hope this gives you some help into the right direction

提交回复
热议问题