2

How do you configure the new CKEditor editor to e.g. add images? Do you create a config/CKeditor folder with a .json file and install the @ckeditor/ckeditor5-image package?

2

I don't think so. You can see the entire code here

ClassicEditor
    .create(document.getElementById('{$nsId}'))
    .then(function(editor) {
        $(editor.element).closest('form').on('submit', function() {
        editor.updateEditorElement();
    });
})

This is the javascript that triggers the editor, as you can see, there are no config settings provided yet. I searched in the entire plugin but I could not find any other Javascript functions that are triggert so unless they provided a really nasty method to include them in the original editor js file you can't change them yet.

The only "configurations" are Html Purifier

Edit

However - you could create a feature request or you could implement your own code to provide settings. You only need to change a few lines - it's totally trivial

2
  • Thanks Robin, looks like the ckeditor5-image plugin hasn't been included - maybe because the Craft plugin is still in β? – Nutmeg Jan 5 '18 at 0:12
  • I don't know, like I said you are free to create a feature request or a pull request or just include the plugin by yourself – Robin Schambach Jan 5 '18 at 4:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.