Page History
...
Code Block | ||||
---|---|---|---|---|
| ||||
<textarea name="content" id="editor">This is a sample text.</textarea> <script> ClassicEditor .create(document.querySelector('#editor')) .then(editor => { editor.element.querySelector('.ck-editor__editable').editor = editor; }) </script> |
...
4. Initialize WSC Proofreader with 'autoSearch'
There are two approaches for initializing WSC Proofreader in your web app: using the variable config or inline data attributes.
Option A. Initializing using Variable Config
1. Set Service Path
Excerpt Include | ||||||
---|---|---|---|---|---|---|
|
Note |
---|
Due to certain specifics of the CKEditor 5 implementation, only proofread in a dialog mode is available. |
...
2. Define Configuration of Proofreader with 'autoSearch'
...
Excerpt Include | ||||||
---|---|---|---|---|---|---|
|
Option B. Initializing using Inline Data Attributes
Excerpt Include | ||||||
---|---|---|---|---|---|---|
|
Excerpt Include | ||||||
---|---|---|---|---|---|---|
|