我试图在JSF页面中使用CKEditor,例如:
<pe:ckEditor id="editor" value="#{messagingController.messageContent}" width="600"/>
该编辑器将出现在Internet Explorer中,但不会出现在Fire Fox或Chrome
FireBug中,显示以下错误:
SyntaxError: An invalid or illegal string was specified
Chrome控制台向我显示以下错误:
Uncaught SyntaxError: Failed to set the 'innerHTML' property on 'Element':
The provided markup is invalid XML, and therefore cannot be inserted into an XML document.
CKEDITOR.plugins.add.afterInit
(anonymous function)
k
CKEDITOR.scriptLoader.load
(anonymous function)
(anonymous function)
(anonymous function)
k
CKEDITOR.scriptLoader.load
CKEDITOR.resourceManager.load
i
(anonymous function)
k
(anonymous function)
(anonymous function)
(anonymous function)
k
l
o
(anonymous function)
这是错误还是什么?我可以以其他方式包含此组件吗?
我还使用了最新的primefaces扩展库:
<groupId>org.primefaces.extensions</groupId>
<artifactId>primefaces-extensions</artifactId>
<version>3.0.0</version>
问题是与MIME类型我的网页!当我改变了它application/xhtml+xml
来text/html
,问题就解决了。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句