Is it not compatible (on Androids Chrome for instance) only the textarea is shown. In this case the _render-Function in 'primefaces-extensions.js' causes an exception which breaks the execution of JavaScript on this page. To prevent breaking the page, I added a try/catch. Maybe this or a better solution can be put in the next release?
Thank you.
Oliver
Code: Select all
_render:function(){
if(!this.instance){
this.overwriteSaveButton();
var a=CKEDITOR.instances[this.id];
if(a)try{a.destroy(!0)}catch(b){window.console&&console.log&&
console.log("CKEditor throwed a error while destroying the old instance: "+b)}
try {
// added try catch
this.jq.ckeditor($.proxy(function(){this.initialized()}, this), this.options)
} catch (b) {window.console&&console.log&&
console.log("Browser is not compatible for CKEditor. Fallback to textarea.")
}
}
}