Преглед изворни кода

Removed obsolete condition already handled in _selectionChangeDebounced listener.

Aleksander Nowodzinski пре 8 година
родитељ
комит
dea39eef63
1 измењених фајлова са 0 додато и 5 уклоњено
  1. 0 5
      packages/ckeditor5-ui/src/toolbar/contextual/contextualtoolbar.js

+ 0 - 5
packages/ckeditor5-ui/src/toolbar/contextual/contextualtoolbar.js

@@ -157,11 +157,6 @@ export default class ContextualToolbar extends Plugin {
 			return;
 		}
 
-		// This implementation assumes that only non–collapsed selections gets the contextual toolbar.
-		if ( !editingView.isFocused || editingView.selection.isCollapsed ) {
-			return;
-		}
-
 		// If `beforeShow` event is not stopped by any external code then panel will be displayed.
 		this.once( 'beforeShow', () => {
 			if ( isStopped ) {