Primefaces CKEditor wrong URL encoding

给你一囗甜甜゛ 提交于 2020-01-05 10:02:34

问题


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!



来源:https://stackoverflow.com/questions/51334120/primefaces-ckeditor-wrong-url-encoding

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!