WProofreader plugin for CKEditor 5 inherits all functionality of the WProofreader component with slight adaptation to the view and features of the editor. Right now the plugin is just a “wrapper” for the classic WProofreader. Thus, WProofreader will be more native to CKEditor 5 build procedure. 

The main differences between the plugin and classic WProofreader are:

For more details, please refer to the official repo or NPM package of the WProofreader plugin for CKEditor 5.

If your preference is to use the plugin instead of the classic WProofreader initialization, please follow the steps below.

1. Clone CKEditor 5 Classic editor:

git clone -b stable [email protected]:ckeditor/ckeditor5-build-classic.git

2. Go to the editor folder:

cd ckeditor5-build-classic

3. Install all the required dependencies:

npm install

4. Install the WProofreader plugin:

npm install @webspellchecker/wproofreader-ckeditor5 --save-dev

5. Open /src/ckeditor.js file.

6. Import the WProofreader plugin:

import WProofreader from '@webspellchecker/wproofreader-ckeditor5/src/wproofreader';

7. Add WProofreader plugin to ClassicEditor.builtinPlugins:

ClassicEditor.builtinPlugins = [
    ...,
    WProofreader
];

8. Add the wproofreader field and its options to ClassicEditor.defaultConfig:

In case of the Cloud version, serviceId and srcUrl are mandatory options.

ClassicEditor.defaultConfig = {
    ...,
    wproofreader: {
        serviceId: 'your-service-ID',
        srcUrl: 'https://svc.webspellchecker.net/spellcheck31/wscbundle/wscbundle.js'
    }
}

In case of the Server-based version, you need clearly define path to the WebSpellChecker/WProofreader server:

ClassicEditor.defaultConfig = {
    ...,
    wproofreader: {
        serviceProtocol: 'https',
		serviceHost: 'your-host-name',
		servicePort: '2880',
		servicePath: '/',
        srcUrl: 'https://your-host-name/virtual-directory/wscbundle/wscbundle.js'
    }
}


The full list of configuration options for WProofreader is available in API docs.

9. Rebuild the bundle:

npm run build

That's it. Now you should be able to use the spelling and grammar checking functionality of WProofreader with CKEditor 5.

Try it out on the default sample page: /sample/index.html.