Skip to content

Spellchecker plugin v.2.2

What it does

This plugin adds spellcheck functionality to Xeditor. It uses Hunspell dictionaries and is based on language tools.

Installation

First you have to switch into your project location using the command line.

cd path/to/your/project

Now you should be in the same directory as the package.json file. Then you can install the plugin as follows:

npm install @xeditor/plugin-spellchecker --save --registry https://npm.xeditor.com:4873

Configuration

The demo configuration of the plugin looks like this:

{
    pluginId: 'spellchecker',
    ptype: 'uxxeditorspellchecker',
    spellCheckerURL: '/editor/spellchecker'
}

API

The API for the plugin can be found here: spellchecker plugin API

Buttons

This plugin exports the following button templates that can be used in your toolbar configuration:

Name Function
button:xeditor.spellchecker.configure Opens spell check language configuration window
button:xeditor.spellchecker.check Toggles spell check

Changelog

v2.2.0

Changes

  • Added configuration defaultTimeout for configuring the timeout used for live checking
  • Added new configuration spellcheckRequestParams. This object will be merged with the original request parameters used for spell check requests
  • Added new configuration ajaxRequestOptions. This object will be merged with ajax request options send to server

Bugfixes

  • Adjusted handling of timeouts in which live spell check will be performed