Skip to content

Commit

Permalink
Simplified assertion for inline editor.
Browse files Browse the repository at this point in the history
  • Loading branch information
Comandeer authored and f1ames committed Jan 5, 2017
1 parent bd7809d commit 2c0d980
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/focusmanager.js
Expand Up @@ -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();
}

Expand Down

0 comments on commit 2c0d980

Please sign in to comment.