Open CustDictConfig.xml file for editing. Inside the <CustomerDb> </CustomerDb> tag, add a new Dictionary tag for your new dictionary: Dictionary DicId – a custom dictionary ID. It must be an unique digital number (e.g. “1”). Also, make sure that the CustDictConfig.xml file doesn't contain the same ID assigned for another custom dictionary. FileName – a custom dictionary file name (e.g. custom_dictionary_name.txt). LangShortName – a special short code for a default language (e.g. the language short code for the American English language is en_US). The full list of the default languages with their short codes is available here. Description – a short custom dictionary description. Here is an example of CustDictConfig.xml with two global custom dictionaries. One for American English and the other for British English. Also, you may choose to create a compiled custom dictionary instead a plan textual dictionary to improve overall performance of the application when working with huge custom dictionaries. Compile Custom Dictionary on Windows Compile Custom Dictionary on Linux Depending on the product and where it is integrated, pass an appropriate custom dictionary parameter with a required dictionary ID (DicId) as a value on your web-page. Product Integration Custom Dictionary Parameter SCAYT plugin for CKEditor 4 CKEDITOR.config.scayt_customDictionaryIds: 'DicId' WSC Dialog plugin for CKEditor 4 CKEDITOR.config.wsc_customDictionaryIds: 'DicId' SCAYT plugin for Froala Editor customDictionaryIds: 'DicId' WProofreader add-on for RTEs3. Create custom dictionary
3.1. Create custom dictionary for default language
Option A. Plain textual dictionary
<CustomerDb>
<Dictionary DicId="1">
<FileName>custom_dictionary_name.txt</FileName>
<LangShortName>en_US</LangShortName>
<Description>An example of a plain textual custom dictionary for the American English language (en_US)</Description>
<Dictionary DicId="2">
<FileName>custom_dictionary_name2.txt</FileName>
<LangShortName>en_GB</LangShortName>
<Description>An example of a plain textual custom dictionary for the British English language (en_GB)</Description>
</Dictionary>
</Dictionary>
</CustomerDb>
Option B. Compiled dictionary
AppServerX.exe -compileCustDict custom_dictionary_name.txt en_US
./AppServerX -compileCustDict custom_dictionary_name.txt en_US
<CustomerDb>
<Dictionary DicId="2">
<FileName>custom_dictionary_name.clx</FileName>
<LangShortName>en_US</LangShortName>
<Description>An example of a compiled custom dictionary for the American English language (en_US)</Description>
</Dictionary>
</CustomerDb>
3.2. Create Custom Dictionary for Additional Language
<CustomerDb>
<Dictionary DicId="3">
<FileName>custom_dictionary_name.txt</FileName>
<LangShortName>ar_SA</LangShortName>
<Description>Custom dictionary for the Arabic language</Description>
</Dictionary>
</CustomerDb>
4. Enable custom dictionary in web application
CustDictConfig.xml
CustDictConfig.xml
CustDictConfig.xml