JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.3.1
[ckeditor.git] / _source / plugins / selection / plugin.js
index 04be631..190344a 100644 (file)
@@ -235,7 +235,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
 \r
                                                                // Avoid saving selection from within text input. (#5747)\r
                                                                var parentTag;\r
-                                                               if ( nativeSel.type == 'Text'\r
+                                                               if ( nativeSel && nativeSel.type == 'Text'\r
                                                                        && ( parentTag = nativeSel.createRange().parentElement().nodeName.toLowerCase() )\r
                                                                        && parentTag in { input: 1, textarea : 1 } )\r
                                                                {\r