Bläddra i källkod

Removed obsolete condition already handled in _selectionChangeDebounced listener.

Aleksander Nowodzinski 8 år sedan
förälder
incheckning
dea39eef63
1 ändrade filer med 0 tillägg och 5 borttagningar
  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 ) {