I successfully implemented pe:ckEditor in my application using the PrimeFaces Extension 6.0.0. During testing, CKEditor displayed and operated correctly in Chrome on my Windows 7 desktop and my Nexus 7 tablet. Unfortunately, CKEditor did not display in Chrome on my Samsung Galaxy S5 phone. I found a few references that guided me to making the following change to the ckeditor.js file:
Old
- if(e.webkit)a.indexOf("chrome")>-1?e.chrome=true:e.safari=true;
New
- if(e.webkit)a.indexOf("chrome")>-1?e.chrome=true:e.safari=true;if(e.chrome)e.mobile=false;
After making this change, CKEditor displayed and operated correctly on my Galaxy S5.
Is there a better way to get pe:ckEditor to work on an Android phone?