Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The functionality is disabled for input fields and tables due to the lack of space to show autocomplete suggestions. The feature works in text areas textareas if the cursor is at the end of the text.

The autocomplete suggests the next word or a short phrase based on the context. For example, the user writes “thank”, the autocomplete suggests “you”. Autocomplete suggestions are highlighted in gray.

The user is typing a word, after 300ms the request for the autocomplete command is sent. If the text is smaller or equals 200 characters, then the request includes the whole text. If the text is larger than 200 characters, then the autocomplete request includes only the last 200 characters. If the text is too large, it will be limited to 32 tokens on the server/network side.

To accept the suggestion, the user clicks the right arrow key

To ignore/refuse the suggestion, the user should continue writing. To “undo” the autocomplete suggestion, the user should use the native revert mechanism of the browser or editor (for instance, click Ctrl+Z).

...

Admins can disable autocomplete permanently by adding autocomplete:false, option to WEBSPELLCHECKER_CONFIG. In this case, end users still will have an option to enable autocomplete suggestions from the UI of the Settings dialog.Please note that in this case the option to enable/disable autocorrect won’t be available as well.

Code Block
languagejs
<script>
    window.WEBSPELLCHECKER_CONFIG = {
        ...
        autocomplete: true,
        ...
    }
</script>

Admins can hide the autocomplete section from the settings, so users can’t enable or disable this feature. Please note that in this case the option to enable/disable spelling autocorrect won’t be available as well.

Code Block
languagejs
<script>
    window.WEBSPELLCHECKER_CONFIG = {
        ...
   		settingsSections: ['dictionaries', 'languages', 'general', 'options'],
        ...
    }
</script>

...