JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.4.2
[ckeditor.git] / _source / plugins / sourcearea / plugin.js
index fe39339..234bbf0 100644 (file)
@@ -72,12 +72,12 @@ CKEDITOR.plugins.add( 'sourcearea',
                                                                win.on( 'resize', onResize );\r
                                                                setTimeout( onResize, 0 );\r
                                                        }\r
-                                                       else\r
+                                                       // As we prevent click to put focus on editor container,\r
+                                                       // while 'mousedown' inside <textarea> is also captured,\r
+                                                       // but we must stop the even propagation, otherwise\r
+                                                       // it's not possible to place the caret inside of it (non IE and IE9).\r
+                                                       if ( document.addEventListener )\r
                                                        {\r
-                                                               // By some yet unknown reason, we must stop the\r
-                                                               // mousedown propagation for the textarea,\r
-                                                               // otherwise it's not possible to place the caret\r
-                                                               // inside of it (non IE).\r
                                                                textarea.on( 'mousedown', function( evt )\r
                                                                        {\r
                                                                                evt.data.stopPropagation();\r