Disable Automatic Spell Checker

Having trouble deploying Oxygen XML Web Author? Got a bug to report? Post it all here.
aujunior
Posts: 45
Joined: Thu Feb 16, 2023 11:00 pm

Disable Automatic Spell Checker

Post by aujunior »

Good morning,

We would like to disable the automatic spell checker in Oxygen Web. We attempted to use the setting "spell.check.options>automaticSpellCheck>false" within the options.xml file, but the system did not deactivate the feature.

We also tried "autocorrect.feature.state>false", but again, it didn’t work.

We found that disabling "Preferences > Enable automatic spell checking" sets the variable -oxy-core-spellcheck.enabled>false in Browser Local Storage, which effectively solved the issue.

However, we want this feature to be disabled by default for all users, without requiring them to manually change the setting.

Could you please advise us on how to configure this as the default in our framework?

Thank you in advance!
image.png
image.png
You do not have the required permissions to view the files attached to this post.
cosminef
Site Admin
Posts: 258
Joined: Wed Aug 30, 2023 2:33 pm

Re: Disable Automatic Spell Checker

Post by cosminef »

Hello,

To disable spellcheck, you can add this entry [1] in options.xml according to the documentation. Alternatively, there is the option for the property set in the browser's local storage: -oxy-core-spellcheck.enabled to be set programmatically, depending on use cases, to either false or true.

[1] https://www.oxygenxml.com/doc/ug-webaut ... checker%3A

Best,
Cosmin
Cosmin Eftenie
www.oxygenxml.com
aujunior
Posts: 45
Joined: Thu Feb 16, 2023 11:00 pm

Re: Disable Automatic Spell Checker

Post by aujunior »

Hello Cosmin,

I tested the "preferredChecker=2" option, but unfortunately it did not work.

Could you kindly show how to programmatically set the -oxy-core-spellcheck.enabled parameter?

Additionally, please note that we are using version 27.0 of Oxygen Web.
cosminef
Site Admin
Posts: 258
Joined: Wed Aug 30, 2023 2:33 pm

Re: Disable Automatic Spell Checker

Post by cosminef »

Hello,
I tested the "preferredChecker=2" option, but unfortunately it did not work.
Setting the entry in options.xml will disable the spellcheck functionality, but it will still appear as active in the UI. Are you still seeing spellcheck errors after setting that entry in options.xml? Did you restart the server after modifying the options.xml file?
Could you kindly show how to programmatically set the -oxy-core-spellcheck.enabled parameter?
Please note that the -oxy-core-spellcheck.enabled setting stored in local storage will be overridden by the value set through the user interface (UI). Therefore, relying on the local storage value for this option is not recommended.

If you are encountering the "Displaying only the first 500 spelling errors" message, it may be due to the fallback mechanism defaulting to English. To resolve this, you can set the xml:lang attribute on the root element of your documents to the appropriate language code. This will prevent the fallback to English and ensure that the correct language is used.

Best,
Cosmin
Cosmin Eftenie
www.oxygenxml.com
Post Reply