Permalink
Browse files

Simplified assertion for inline editor.

  • Loading branch information...
Comandeer authored and f1ames committed Jan 3, 2017
1 parent bd7809d commit 2c0d9802bd809bb3c28c86ea8ff911f351d6ae18
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/focusmanager.js
View
@@ -158,7 +158,7 @@
// Blink browsers leave selection in `[contenteditable=true]`
// when it's blurred and it's neccessary to remove it manually for inline editor. (#13446)
if ( CKEDITOR.env.chrome && editor.elementMode == CKEDITOR.ELEMENT_MODE_INLINE ) {
if ( CKEDITOR.env.chrome && editor.editable().isInline() ) {
editor.window.$.getSelection().removeAllRanges();
}

0 comments on commit 2c0d980

Please sign in to comment.