Hi. I'm having this weird behavior with ckeditor and JSF. The problem is like this: I'm using ckeditor 3.5.2 with jsf 2.0 and facelets. The very same code that works perfectly in IE8 and Firefox (even on Linux) won't work in chrome. The region where the editor should be rendered is empty. It shows nothing. After examining the source code both workings browsers generate against the generated for chrome I see a minor difference:
Code from Firefox / IE8:
Code generated by Chrome 10.0
So I suspected this CDATA was commenting out the javascript. I tried to get rid of it but was impossible. After so much digging in Internet I just can't find an explanation for this.
The really weird behavior that shocks me out is that if i grab the source code generated by chrome and paste it in a totally new html page, the page works flawlessly. So the CDATA is not the culprit.
Any suggestions??
Code from Firefox / IE8:
<script type="text/javascript">
CKEDITOR.replace( 'attachment:content', { toolbar : 'mylegacy', uiColor : '#bdbdbd'} );
</script>
Code generated by Chrome 10.0
<script type="text/javascript">
//<![CDATA[
CKEDITOR.replace( 'attachment:content', { toolbar : 'mylegacy', uiColor : '#bdbdbd'} );
//]]>
</script>
So I suspected this CDATA was commenting out the javascript. I tried to get rid of it but was impossible. After so much digging in Internet I just can't find an explanation for this.
The really weird behavior that shocks me out is that if i grab the source code generated by chrome and paste it in a totally new html page, the page works flawlessly. So the CDATA is not the culprit.
Any suggestions??
Re: CKEditor invisible with JSF 2.0