问题描述
我正在尝试将CKEditor(Primefaces扩展名)合并到我的项目中,以替换p:editor.问题在于,加载页面时,浏览器控制台中显示以下错误:
I am trying to incorporate CKEditor (Primefaces Extensions) to my project to replace p:editor. The problem is that when loading the page shows the following error in the browser console:
错误:[CKEDITOR.resourceManager.load]在" http://localhost:8080/proyecto/javax.faces.resource/ckeditor/styles.js.2.xhtml ?ln = primefaces-extensions& v = 6.2& v = 6.2 ".
Error: [CKEDITOR.resourceManager.load] Resource name "default" was not found at "http://localhost:8080/proyecto/javax.faces.resource/ckeditor/styles.js.2.xhtml?ln=primefaces-extensions&v=6.2&v=6.2".
而不是(在styles.js之后添加.2): http://localhost:8080/proyecto/javax.faces.resource/ckeditor/styles.js.2.xhtml?ln = primefaces-extensions& v = 6.2& v = 6.2
Instead of (add .2 after styles.js):http://localhost:8080/proyecto/javax.faces.resource/ckeditor/styles.js.2.xhtml?ln=primefaces-extensions&v=6.2&v=6.2
<pe:ckEditor id="editText" widgetVar="editText" value="#{accomunicaciones.correoSeleccionado.cuerpo}">
<p:ajax event="save" update="growl"/>
</pe:ckEditor>
那可能正在发生?谢谢.
That could be happening? Thank you.
推荐答案
这是一个错误,因此已报告给 PFE GitHub页面.
This is a bug so it has been reported to the PFE GitHub page.
该链接中有一个修补的6.2.7.jar,可以解决此问题.
There is a patched 6.2.7.jar in that link that fixes the problem.
此问题已在PFE 6.2.8+中修复.感谢您的举报!
This is fixed in PFE 6.2.8+. Thanks for reporting!
这篇关于添加Primefaces扩展的CKEditor时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!