This guide outlines the main steps that you need to follow for initializing WProofreader in CKEditor 4. 

1. Initialize CKEditor 4

Before integrating and configuring WProofreader, make sure CKEditor 4 is properly configured in your web application. To initialize CKEditor 4, follow the steps described in CKEditor 4 Quick Start Guide.

2. Initialize WProofreader

Choose one of the options below how to enable spelling and grammar checking functionality of WProofreader in CKEditor 4.

Option A. Using autoSearch

When using this method, you need a CONFIG and a wscbundle.js script.

<script>
    window.WEBSPELLCHECKER_CONFIG = {
		autoSearch:true,
		lang: 'uk_UA',
		...
	};
</script>

<script type="text/javascript" src="http(s)://your_host_name/wscservice/wscbundle/wscbundle.js"></script>

After setting up the autoSearch, WProofreader will be enabled as soon as the editable container with CKEditor is in focus.

Option B. Using init() method

When using this method, WProofreader will be started on the CKEditor 4 load.

3.  Specify Additional Server Parameters

Make sure you use have specified the following parameters  and their values for the server:

serviceProtocol: 'https',
serviceHost: 'your_host_name',
servicePort: '2880',
servicePath: '/'

4. Further Actions

After you have initialized WProofreader in CKEditor 4, you can customize WProofreader options, its user interface, and behavior. You can see the demo of CKEditor 4 integration on our web site.