Documentation Center

Editor.SpellChecking.addPersonalWords

This method changes the list of allowed words set for the current user.

Description

Users of the editor can add words to their personal dictionary, which is stored in the browsers' local storage. This list is preserved over multiple sessions. Using the addPersonalWords method, additional words can be added using the API.

This feature can be used only when using the dictionary files for spellchecking, it cannot be used together with the Editor.SpellChecking.setSpellCheckingFunction method.

Syntax

Editor.SpellChecking.addPersonalWords(langCode:String, words:String[])

Arguments

langCode
String. The code for the language.
words
Array of String. The words to be marked as correct in the spellchecker.

Example

Editor.SpellChecking.addPersonalWords('en-US', ['Xopus', 'wysiwyg']);