Using ckeditor in jsf page

前端 未结 2 486
刺人心
刺人心 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:51

    I switched to the primeface extension.

    Those are the dependencies needed (I forgot the second one that's why it wasn't working):

    
        org.primefaces.extensions
        primefaces-extensions
        3.1.0
    
    
        org.primefaces.extensions
        resources-ckeditor
        3.1.0
    
    

    then the namespace in the xhtml file:

    xmlns:pe="http://primefaces.org/ui/extensions"
    

    and here is a link that explains step by step.

    If you are not using primefaces you can make it work by following the comment of w vd L

提交回复
热议问题