X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=_source%2Fplugins%2Fselection%2Fplugin.js;h=190344a24537b78bcf807d93e9c685fd45285429;hp=04be63171d0a106aeacbb2888e7f5b8277a498e7;hb=66f4ae0bf0280ed56bf7c0f4ab175424dd1d47a0;hpb=f8fc585c18d287eb325c575596d183122486b641 diff --git a/_source/plugins/selection/plugin.js b/_source/plugins/selection/plugin.js index 04be631..190344a 100644 --- a/_source/plugins/selection/plugin.js +++ b/_source/plugins/selection/plugin.js @@ -235,7 +235,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license // Avoid saving selection from within text input. (#5747) var parentTag; - if ( nativeSel.type == 'Text' + if ( nativeSel && nativeSel.type == 'Text' && ( parentTag = nativeSel.createRange().parentElement().nodeName.toLowerCase() ) && parentTag in { input: 1, textarea : 1 } ) {