Is it possible to pass configuration values to the CKEditor, e.g. to include a webspellchecker?
It’s possible, but [webspellchecker]
(https://ckeditor.com/docs/ckeditor5/latest/features/spelling-and-grammar-checking.html) is not free. So it’s not included.
We’ve got a License. The previous CKEditor Addon had the possibility to pass configuration parameters to the editor. In CKEditor 5 it would
ClassicEditor
.create( editorElement, {
plugins: [ ..., WProofreader ]
,
wproofreader: {
serviceProtocol: 'https',
serviceHost: 'localhost',
servicePort: '2880',
servicePath: '/',
srcUrl: 'https://host_name/virtual_directory/wscbundle/wscbundle.js'
}
} )
How could i pass the settings to the editor?
Not supported currently.
Okay
New updates:
From version 2.0.0, configuration on spell checker is available.
You could do it like below.
Config config = new Config();
config.setWproofReaderCloud();//For cloud server
config.setWproofReaderServer();//For self hosted server
VaadinCKEditor classicEditor = new VaadinCKEditorBuilder().with(builder -> {
builder.config = config;
}).createVaadinCKEditor();