0

I suppose this is a more specific version of my recent question Browser-sniffing alternative for bugs/misbehaviors (NOT lack of features).

CKEditor is known not to work on certain clients like iOS Safari. Rather than use hackish browser detection, is there a way to see at runtime whether ckeditor will work on the current browser so that I can not load it or fall back to an alternative in case it won't?

Community
  • 1
  • 1
Dan
  • 10,990
  • 7
  • 51
  • 80
  • Apparently the latest beta is expected to work in iOS 5 if that helps: http://ckeditor.com/blog/CKEditor_3.6.2_released – Clive Oct 13 '11 at 17:05
  • I saw that, which actiually inspired my question. I'm looking forward to that, but I imagine it will be a while before most of my users upgrade. – Dan Oct 13 '11 at 18:06

2 Answers2

1

Use CKEditor.env.isCompatible and that way you can know exactly if a browser version is supported or not (for example iOS 5 is supported in 3.6.2 as Clive has mentioned)

AlfonsoML
  • 12,634
  • 2
  • 46
  • 53
0

CKEditor has the instanceReady() event. That might help - if you can afford to wait for that to fire, and have a timeout of sorts in case it doesn't.

There doesn't seem to be a onerror event in CKEditor. The list of main events is here.

Pekka
  • 442,112
  • 142
  • 972
  • 1,088