Suggestion pop-up
Last updated
Was this helpful?
The suggestion pop-up appears when a user hovers over a marked word. It shows spelling, grammar, or style suggestions along with action items.
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: 5By default, additional suggestions aren't shown. To add a "More suggestions" submenu:
moreSuggestionsCount: 5,To hide the suggestion type label (spelling, grammar, style) in the pop-up:
disableTypeInSuggestionPopup: true,To hide the explanation text for grammar and style issues:
This applies to both the suggestion pop-up and the proofread dialog.
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.
'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?
Was this helpful?
disableProblemDescription: trueactionItems: ['addWord', 'ignoreAll', 'ignore', 'report', 'disableRule', 'settings', 'toggle', 'proofreadDialog']
