# Disabling WProofreader in source mode of WYSIWYG editors

Quite often we receive requests from our clients asking how to disable the proofreading option in the source mode of a rich text editor and keep it enabled only in the WYSIWYG mode. In general, for such cases, we offer a special option **disableAutoSearchIn** of WProofreader that allows disabling it for certain cases (class, id, data attribute name and HTML elements).

**Disabling WProofreader in Source Mode of CKEditor 4**

<mark style="background-color:green;">\[Resolved]</mark>

The source mode of CKEditor 4 has a special CSS class '**.cke\_source**'. You can rely on this class and disable WProofreader using the **disableAutoSearchIn** option with this class specified as in the example below.

```javascript
<script>
	window.WEBSPELLCHECKER_CONFIG = {
   		....
   		disableAutoSearchIn: ['.cke_source']
  		....
	};
</script>
```

{% hint style="warning" %}
WProofreader was disabled by default for CKEditor 4 source mode in release [5.5.2](https://webspellchecker.com/release-notes/webspellchecker-cloud-server-5-5-2-release-note/) effective date August 16, 2019.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.wproofreader.com/integrations/how-tos/disabling-wproofreader-in-source-mode-of-wysiwyg-editors.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
