8
0
panr 5 лет назад
Родитель
Сommit
1faf5523c3
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      packages/ckeditor5-image/src/imageupload/imageuploadcommand.js

+ 1 - 1
packages/ckeditor5-image/src/imageupload/imageuploadcommand.js

@@ -45,7 +45,7 @@ export default class ImageUploadCommand extends Command {
 	 */
 	refresh() {
 		const imageElement = this.editor.model.document.selection.getSelectedElement();
-		const isImage = imageElement && imageElement.name === 'image';
+		const isImage = imageElement && imageElement.name === 'image' || false;
 
 		this.isEnabled = isImageAllowed( this.editor.model ) || isImage;
 	}