Преглед на файлове

Docs: Imprved docs in the Image class.

Aleksander Nowodzinski преди 8 години
родител
ревизия
1e055592d0
променени са 1 файла, в които са добавени 3 реда и са изтрити 2 реда
  1. 3 2
      packages/ckeditor5-image/src/image.js

+ 3 - 2
packages/ckeditor5-image/src/image.js

@@ -44,8 +44,9 @@ export default class Image extends Plugin {
 		const editor = this.editor;
 		const contextualToolbar = editor.plugins.get( 'ui/contextualtoolbar' );
 
-		// If `ContextualToolbar` plugin is loaded we need to disable it for `Image`
-		// because `Image` has its own toolbar. See: ckeditor/ckeditor5-image#110.
+		// If `ContextualToolbar` plugin is loaded, it should be disabled for images
+		// which have their own toolbar to avoid duplication.
+		// https://github.com/ckeditor/ckeditor5-image/issues/110
 		if ( contextualToolbar ) {
 			this.listenTo( contextualToolbar, 'beforeShow', ( evt, stop ) => {
 				const selectedElement = editor.editing.view.selection.getSelectedElement();