X-Git-Url: https://jasonwoof.com/gitweb/?p=ckeditor.git;a=blobdiff_plain;f=_source%2Fplugins%2Fselection%2Fplugin.js;h=747d3f588ed1972fd58fa4ea6969277a45035766;hp=e7c24b7587b81ea5c6c9862a1827a3c75eaa4af2;hb=8761695d9b70afe75905deaac88f78c1f8aeb32d;hpb=ea7e3453c7b0f023b050aca6d9f83ab372860d91 diff --git a/_source/plugins/selection/plugin.js b/_source/plugins/selection/plugin.js index e7c24b7..747d3f5 100644 --- a/_source/plugins/selection/plugin.js +++ b/_source/plugins/selection/plugin.js @@ -678,7 +678,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license { node = sel.anchorNode; - if ( node.nodeType != 1 ) + if ( node && node.nodeType != 1 ) node = node.parentNode; } }