For the complete documentation index, see llms.txt. This page is also available as Markdown.

Suggestion pop-up

The suggestion pop-up appears when a user hovers over a marked word. It shows spelling, grammar, or style suggestions along with action items.

Number of suggestions by type

Use suggestionsCountByType to set different limits per suggestion type. Default: { spelling: 3, grammar: 5, style: 6 }.

suggestionsCountByType: {
  spelling: 5,
  grammar: 3,
  style: 4
}

Legacy option

The older suggestionsCount option sets a single limit for all types. If suggestionsCount is set to a value other than 3, it takes priority over suggestionsCountByType.

suggestionsCount: 5

More suggestions submenu

By default, additional suggestions aren't shown. To add a "More suggestions" submenu:

moreSuggestionsCount: 5,

Hide suggestion type labels

To hide the suggestion type label (spelling, grammar, style) in the pop-up:

disableTypeInSuggestionPopup: true,

Hide suggestion descriptions

To hide the explanation text for grammar and style issues:

This applies to both the suggestion pop-up and the proofread dialog.

Action items

The actionItems parameter controls which commands appear in the suggestion pop-up, badge, and proofread dialog. Default:

Not all actions appear in every location. The suggestion pop-up shows suggestion-specific actions, while the badge only shows Settings, Toggle, and Proofread in dialog.

Value
Description

'addWord'

Add the word to the user dictionary.

'ignore'

Ignore this occurrence of the word.

'ignoreAll'

Ignore all occurrences of the word in the current session.

'report'

Report a suggestion as incorrect.

'disableRule'

Disable the rule behind the suggestion for the current browser session. Errors matching this rule won't be underlined until the page is reloaded.

'settings'

Open the Settings dialog.

'toggle'

Enable or disable WProofreader.

'proofreadDialog'

Open the proofread in dialog mode.

To prevent users from adding words to their dictionary, remove 'addWord'. To hide the settings icon, remove 'settings'. To hide the report option, remove 'report'.

Last updated

Was this helpful?