Skip to content

Commit e49980f

Browse files
committed
Merge branch 't/10877' into major
2 parents 1066410 + 634f599 commit e49980f

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Fixed Issues:
1616
* [#10836](http://dev.ckeditor.com/ticket/10836): [Enhanced Image](http://ckeditor.com/addon/image2): Preserve custom mouse cursor while resizing the image.
1717
* [#10881](http://dev.ckeditor.com/ticket/10881): Various improvements to *Enter* key behaviour in nested editables.
1818
* [#10879](http://dev.ckeditor.com/ticket/10879): Remove format should not leak from nested editable.
19+
* [#10877](http://dev.ckeditor.com/ticket/10877): Fixed: WebSpellChecker fails to apply changes if nested editable was focused.
1920

2021
## CKEditor 4.3 Beta
2122

core/editor.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,12 @@
218218
}
219219

220220
function updateCommandsContext( editor, path, forceRefresh ) {
221+
// Commands cannot be refreshed without a path. In edge cases
222+
// it may happen that there's no selection when this function is executed.
223+
// For example when active filter is changed in #10877.
224+
if ( !path )
225+
return;
226+
221227
var command,
222228
name,
223229
commands = editor.commands;

0 commit comments

Comments
 (0)