Proofing in the editor
Review text as you type
Spell checking is enabled automatically and the Proofing tab is opened when the editor is ready. Try the sample text directly in the document.
What to try
Find a misspelled word
Type a word that is not in the dictionary or right-click an underlined word to view suggestions.
Use the Proofing tab
Run the spell checker, review suggestions, or open the thesaurus from the ribbon.
Keep editing naturally
Spell checking continues while you type, paste, and revise the document.
Ready to tryUse the controls above to interact with this demo.
What this demonstrates
Spell Checking
TX Spell .NET continuously checks text against the selected dictionaries and marks words that need attention without interrupting the editing workflow.
Key members
Enable live spell checking
TXTextControl.setIsSpellCheckingEnabled
Open the Proofing ribbon
TXTextControl.ribbon.selectedTab
Wait for ribbon initialization
TXTextControl.addEventListener
How it works
When the editor raises textControlLoaded, the demo enables spell checking with TXTextControl.setIsSpellCheckingEnabled(true, callback, errorCallback). This keeps the feature active for new text and for content pasted into the document.
After the ribbon raises ribbonTabsLoaded, the demo selects tabProofing. The standard Proofing controls then provide spell checking, suggestions, dictionary actions, and thesaurus commands without an additional custom toolbar.
Spelling errors are underlined in the document and can be handled in context. Use the toggle in Try It to turn live spell checking off and on while you compare the editing experience.
TXTextControl.addEventListener("textControlLoaded", () => {
TXTextControl.setIsSpellCheckingEnabled(true, () => {}, showError);
TXTextControl.addEventListener("ribbonTabsLoaded", () => {
TXTextControl.ribbon.selectedTab = "tabProofing";
});
});
NuGet packages
TXTextControl.TextControl.Core.SDK
34.0.4
Provides the core document model and server-side document processing APIs.
dotnet add package TXTextControl.TextControl.Core.SDK --version 34.0.4
Provides the browser-based TX Text Control document editor and JavaScript API.
dotnet add package TXTextControl.Web --version 34.4.0
TXTextControl.Web.DocumentEditor.Backend
34.4.0
Hosts the WebSocket-based backend used by the browser document editor.
dotnet add package TXTextControl.Web.DocumentEditor.Backend --version 34.4.0
TXTextControl.TXSpell.Core.SDK
11.0.1
Adds spell-checking services to the document editor.
dotnet add package TXTextControl.TXSpell.Core.SDK --version 11.0.1
Source files
See the implementation
The view, browser behavior, and controller are encapsulated in Demos/RichTextEditor/Advanced/SpellChecking.