Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Add case with the specific class for CKEditor 4

...

When using this method, you need a CONFIG and a wscbundle.js script. After setting up the autoSearch, WProofreader will be enabled as soon as the editable container with CKEditor is in focus.

Code Block
languagejs
themeEmacs
<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>

...

To limit WProofreader work only to CKEditor 4, you can use the enableAutoSearchIn option where you need to indicate the class of CKEditor 4. They hide the original element and create an iframe element with cke_wysiwyg_frame class: <iframe class="cke_wysiwyg_frame"></iframe>.  

Code Block
languagejs
enableAutoSearchIn: ['.cke_wysiwyg_frame'],


Option B.
Using init() method

...