When using spell checking in our online editor, dictionaries that are located in the Dictionaries folder of the synchronization service are loaded automatically. That includes all OpenOffice dictionaries and user dictionaries.
This article explains how to enable spell checking for the HTML5-based online editor:
In this sample, we created a Web API to handle user dictionaries:
The Web API contains 3 endpoints:
This endpoint returns all user dictionary filenames in the created folder Dictionaries.
This endpoint loads a specific dictionary by filename.
This endpoint saves a specific dictionary.
On loading the page, all available dictionaries are listed in a drop-down box:
If the button Save UserDictionaries is clicked, all dictionaries are saved back on the server:
The following animation shows this sample in action:
This this on your own and download the sample from our GitHub repository.
Download and Fork This Sample on GitHub
We proudly host our sample code on github.com/TextControl.
Please fork and contribute.
Requirements for This Sample
- Visual Studio 2017 or better
- TX Text Control .NET Server for ASP.NET (trial sufficient)