0

I have been struggling for a couple of days with implementing the simple upload editor with laravel 8. I have been implementing it according to the ckeditor guide from here: https://ckeditor.com/docs/ckeditor5/latest/features/image-upload/simple-upload-adapter.html

I am able to install it with npm, also add it to my blade file and the editor itself shows up fine, but as soon as I keep this import line there for uploading images:

import SimpleUploadAdapter from '@ckeditor/ckeditor5-upload/src/adapters/simpleuploadadapter';

Safari complains with:

SyntaxError: Unexpected identifier 'SimpleUploadAdapter'. import call expects exactly one argument.

I have tried to copy the whole script into a separate javascript file and link it but the same error appears. what am I doing wrong? It seems like only the import line is keeping me from having the image upload working.

Anonymous Asked question May 14, 2021