New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial
Configure Browser Spellcheck in RadEditor
In this article you will see how to adjust the native browser's spellcheck to get the desired behavior with runtime spellchecking in the content area.
Modern browsers support spellchecking as an out-of-the-box feature. This feature has nothing to do with the built-in AjaxSpellChecker of RadEditor and it is configurable by the spellcheck and lang DOM attributes.
Example 1: How to disable browser spellcheck in RadEditor
ASP.NET
<telerik:RadEditor runat="server" ID="RadEditor1" RenderMode="Lightweight" OnClientLoad="OnClientLoad">
</telerik:RadEditor>
<script>
function OnClientLoad(editor, args) {
editor.get_contentArea().setAttribute("spellcheck", "false");
}
</script>
Example 2: How to change the language of the browser spellcheck in RadEditor
ASP.NET
<telerik:RadEditor runat="server" ID="RadEditor1" RenderMode="Lightweight" OnClientLoad="OnClientLoad">
</telerik:RadEditor>
<script>
function OnClientLoad(editor, args) {
editor.get_contentArea().setAttribute("lang", "de");
}
</script>
Spellcheck language depends also on the installed language dictionaries in the browser.