次のような 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>