Sfoglia il codice sorgente

Register `imageUpload` component on `init()`.

panr 5 anni fa
parent
commit
0e4c1f6244

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

@@ -37,7 +37,7 @@ export default class ImageUploadUI extends Plugin {
 	/**
 	 * @inheritDoc
 	 */
-	afterInit() {
+	init() {
 		const editor = this.editor;
 		const command = editor.commands.get( 'imageUpload' );