How do you get pe:ckEditor to work on an Android phone?

Community Driven Extensions Project
Post Reply
RElliott
Posts: 94
Joined: 07 Feb 2014, 00:39

30 Dec 2016, 17:53

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?
PrimeFaces 7.0.1, Glassfish 5.1.0, Oracle JDK 8, Eclipse 2016-02

Melloware
Posts: 3717
Joined: 22 Apr 2013, 15:48

30 Dec 2016, 20:28

Please report this to the PF Extensions Github Issues so we can fix it:

https://github.com/primefaces-extension ... com/issues

We have upgraded for 6.1 to the latest CKEDitor and we can investigate whether they have included this already or whether we should add this to ensure it works for the 6.1 release. Your fix seems perfectly reasonable to me.
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

30 Dec 2016, 22:29

Just check it with the ckeditor demo page ;) If the problem does still occur on their side, then please create a issue in ckeditor, not in primefaces-extensions.
If it's fixed, we can just upgrade the editor.
Thomas Andraschko

PrimeFaces | PrimeFaces Extensions

Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE

Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko

Melloware
Posts: 3717
Joined: 22 Apr 2013, 15:48

30 Dec 2016, 22:34

Ahh yes if it is in ckeditor.js that is their code not PFE. After you validate it you can report it to CKEditor team here: http://dev.ckeditor.com/wiki/Bugs
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

RElliott
Posts: 94
Joined: 07 Feb 2014, 00:39

31 Dec 2016, 05:56

I am able to see and interact with the CKEditor 4.6.1 examples on the http://www.ckeditor.com site with my Galaxy S5. I will verify that the PFE 6.1.0 version of pe:ckEditor runs well on my mobile after the release.

Thanks!
PrimeFaces 7.0.1, Glassfish 5.1.0, Oracle JDK 8, Eclipse 2016-02

Melloware
Posts: 3717
Joined: 22 Apr 2013, 15:48

31 Dec 2016, 14:26

OK then it is definitely fixed because the CKEDitor release notes mention this was fixed in version 4.5.4.

http://dev.ckeditor.com/ticket/11725
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

Post Reply

Return to “Extensions”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 6 guests