From 78696e846c9437795df6e76c9c736e56c0468c83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotrek=20Koszuli=C5=84ski?= Date: Tue, 3 Sep 2019 11:33:15 +0200 Subject: [PATCH] Can use the class now. --- src/imageupload/imageuploadediting.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/imageupload/imageuploadediting.js b/src/imageupload/imageuploadediting.js index ab97aeb9..d68696df 100644 --- a/src/imageupload/imageuploadediting.js +++ b/src/imageupload/imageuploadediting.js @@ -119,7 +119,7 @@ export default class ImageUploadEditing extends Plugin { // For every image file, a new file loader is created and a placeholder image is // inserted into the content. Then, those images are uploaded once they appear in the model // (see Document#change listener below). - this.listenTo( editor.plugins.get( 'Clipboard' ), 'inputTransformation', ( evt, data ) => { + this.listenTo( editor.plugins.get( Clipboard ), 'inputTransformation', ( evt, data ) => { const fetchableImages = Array.from( editor.editing.view.createRangeIn( data.content ) ) .filter( value => isLocalImage( value.item ) && !value.item.getAttribute( 'uploadProcessed' ) ) .map( value => { return { promise: fetchLocalImage( value.item ), imageElement: value.item }; } );