Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught SyntaxError: Cannot use import statement outside a module #1

Open
Amirelkanov opened this issue Jun 14, 2020 · 1 comment
Open

Comments

@Amirelkanov
Copy link

Do I need to connect any more scripts?

Below is a snippet of connection and full code (index.html is in the sample folder)

<script>
    import ImgurUploaderInit from 'ckeditor5-imgur-uploader'

    const ImgurUploader = ImgurUploaderInit({clientID: '...'})
    ClassicEditor

        .create(document.querySelector('.editor'), {
            extraPlugins: [ImgurUploader],
            toolbar: {
                items: [
                    'heading',
                    '|',
                    'bold',
                    'italic',
                    'link',
                    'bulletedList',
                    'numberedList',
                    '|',
                    'indent',
                    'outdent',
                    '|',
                    'imageUpload',
                    'blockQuote',
                    'insertTable',
                    'mediaEmbed',
                    'undo',
                    'redo'
                ]
            },
            language: 'ru',
            image: {
                toolbar: [
                    'imageTextAlternative',
                    'imageStyle:full',
                    'imageStyle:side'
                ]
            },
            table: {
                contentToolbar: [
                    'tableColumn',
                    'tableRow',
                    'mergeTableCells'
                ]
            },
            licenseKey: '',

        })
        .then(editor => {
            window.editor = editor;
        })
        .catch(error => {
            console.error(error);
        });
</script>

1.zip

@pitops
Copy link
Owner

pitops commented Jun 25, 2020

@Amirelkanov what is the issue exactly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants