Primefaces CKEditor wrong URL encoding

2019-07-31 12:25发布

问题:

I tried to start using Primefaces CKEditor in my project. I did all what is described here: https://github.com/primefaces-extensions/primefaces-extensions.github.com/wiki/Getting-Started But unfortunately the script of CKEditor contains wrong generated urls.

(there some urls is prefixed by '.2')

for example:

insted of:

javax.faces.resource/ckeditor/skins/moono-lisa/.2editor.css.xhtml?ln=primefaces-extensions&v=6.2.5&v=6.2

should be

javax.faces.resource/ckeditor/skins/moono-lisa/editor.css.xhtml?ln=primefaces-extensions&v=6.2.5&v=6.2 

the same here:

instead of:

javax.faces.resource/ckeditor/styles.js.2.xhtml?ln=primefaces-extensions&v=6.2.5&v=6.2

should be

javax.faces.resource/ckeditor/styles.js.xhtml?ln=primefaces-extensions&v=6.2.5&v=6.2

bellow I attach print screen from console. I tried everything that comes to my mind but I not found solution. Meaby someone of you have some Idea or suggestions?

回答1:

This is a bug so it has been reported to the PFE GitHub page.

There is a patched 6.2.7.jar in that link that fixes the problem.

This is fixed in PFE 6.2.8+. Thanks for reporting!