Hi,
CKEditor throwing error when I try to select the value from styles, fonts, size drop down. The javascript error that I am getting was at highlighted method.
c=CKEDITOR.tools.tryThese(function(){return b.getNative().createRange().item(0)},function(){for(var a=b.getRanges()[0].clone(),c,d,e=2;e&&(!(c=a.getEnclosedNode())
The error says "Object doesn't support propert or method createRange()"
I am just using OOTB CKEditor with out any changes. I am using IE 11(Windows 8.1). The same code is working fine in Google Chrome
Let me know if somebody faced the same issue. I am using latest version of CKEditor
-Premchand
The function you highlighted
The function you highlighted is used inside a try-catch block so the error does not leak. This is just a method of testing browser features and it doesn't affect the editor. You see the alert most likely because you have a debugger set to notify you about every exception (event caught ones), which is useless when working with a CKEditor and it's not a default setting too.
Piotrek (Reinmar) Koszuliński
CKEditor JavaScript Developer
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+