|
//Please set your service url.
<div>
<SfDocumentEditorContainer ID="container" EnableSpellCheck="true"ServiceUrl="http://localhost:62869/api/documenteditor/"EnableToolbar="true">
<DocumentEditorContainerEvents></DocumentEditorContainerEvents>
</SfDocumentEditorContainer>
@code
{
SfDocumentEditorContainer container;
public void onCreated()
{
var spellcheck = container.DocumentEditor.SpellChecker;
// Document Editor provides multi-language spell check support. You can add as many languages (dictionaries) in the server-side and to use that language for spell checking in Document Editor, it must be matched with languageID you pass in the Document Editor.
spellcheck.SetLanguageID(1046);
spellcheck.SetRemoveUnderline(false);
spellcheck.SetAllowSpellCheckAndSuggestion(true);
}
}
|