You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Enable 'Proofread in dialog' for multi-root and real-time collaboration modes. [#78](https://github.com/WebSpellChecker/wproofreader-ckeditor5/issues/78).
2. Add a new plugin and its configuration to CKEditor.
29
-
30
-
Set the WProofreader configuration data into the `wproofreader` field of the CKEditor 5 config. All available options are described in [API docs](https://webspellchecker.com/docs/api/wscbundle/Options.html).
31
-
32
-
For the **Cloud-based** version of WProofreader:
36
+
Import the WProofreader plugin into the project and configure it. Then, add it to the `create()` method configuration and include it as a toolbar item.
33
37
34
38
```js
35
-
import WProofreader from '@webspellchecker/wproofreader-ckeditor5/src/wproofreader';
39
+
import { ClassicEditor } from 'ckeditor5';
40
+
import { WProofreader } from '@webspellchecker/wproofreader-ckeditor5';
36
41
...
37
42
38
43
ClassicEditor
39
44
.create( editorElement, {
40
45
plugins: [ ..., WProofreader ],
41
46
toolbar: [ ..., 'wproofreader' ],
42
47
wproofreader: {
43
-
lang: 'en_US', // sets the default language
44
-
serviceId: 'your-service-ID', // required for the Cloud version only
`serviceId` is a mandatory parameter for activating and using the plugin pointed to the Cloud-based version of WProofreader.
53
+
### Using CDN
51
54
52
-
For the **Server-based** version of WProofreader:
55
+
To load the script, utilize the browser's [import map](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script/type/importmap) feature. This allows you to map a simple specifier to the full CDN URL, making it easier to reference the necessary files.
53
56
54
-
```js
55
-
import WProofreader from '@webspellchecker/wproofreader-ckeditor5/src/wproofreader';
Unlike the Cloud-based version, the `serviceId` parameter is not used here. Instead, it is required to specify the path to the backend entry point hosted on the client’s infrastructure.
69
+
In the following script tag, import the WProofreader plugin, add it to the `plugins` array, and include it as a toolbar item.
70
+
71
+
```html
72
+
<script type="module">
73
+
import { ClassicEditor } from 'ckeditor5';
74
+
import { WProofreader } from '@webspellchecker/wproofreader-ckeditor5';
75
+
76
+
ClassicEditor
77
+
.create( editorElement, {
78
+
plugins: [ ..., WProofreader ],
79
+
toolbar: [ ..., 'wproofreader' ],
80
+
wproofreader: {
81
+
/* config of WProofreader */
82
+
}
83
+
} )
84
+
</script>
85
+
```
74
86
75
-
For WProofreader that uses "CKEditor 5" without legacy methods of installation:
87
+
2. Configure the plugin
88
+
89
+
After installing the plugin, you need to configure it in the CKEditor 5 setup. The configuration is added to the `wproofreader` field. For a detailed list of available customization options, refer to the [documentation](https://webspellchecker.com/docs/api/wscbundle/Options.html).
90
+
91
+
For the **Cloud-based** version of WProofreader:
76
92
77
93
```js
78
-
import { ClassicEditor } from 'ckeditor5';
79
-
import { WProofreader } from '@webspellchecker/wproofreader-ckeditor5';
80
-
...
94
+
wproofreader: {
95
+
lang: 'en_US', // sets the default language
96
+
serviceId: 'your-service-ID', // required for the Cloud version only
Unlike the Cloud-based version, the `serviceId` parameter is not used here. Instead, it is required to specify the path to the backend entry point hosted on the client’s infrastructure.
117
+
92
118
## Documentation
93
119
94
120
To find out more, refer the following documentation:
0 commit comments