You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

You may face with the problem that certain grammar rules are not working well in your case and you preference will be to disable them for all users.

We do offer a workaround that makes it possible to disable a rule by its ID. To do so, please follow the next steps:

1. Write a sentence which contains the grammar problem you wish to disable. Wait until the problem is underlined.

2. Go to the browser console and select Elements tab. On the elements tab click on the icon Select an element to inspect it

3. Go to the editable field with the grammar problem underlined and select this element for inspection. This is a span element with list of the attributes. You need to extract information from data-grammar-rule="rule_id".

4. Once you have a rule Id (for example, PRP_VBG), you need to add it as a value into a new option called disabledRules of your WProofreader config. See an example below with two rules:

<script>
    window.WEBSPELLCHECKER_CONFIG = {
        ...
        disabledRules: ['PRP_VBG', 'UPPERCASE_SENTENCE_START'],
        ...
    }
</script>

If you expect that you may need to enlarge this array quite often and you don't want to make changes to your configuration each time, make sure you load dynamically the values for this option.