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.
<telerik:RadEditor runat="server" ID="RadEditor1" RenderMode="Lightweight" OnClientLoad="OnClientLoad">
</telerik:RadEditor>
<script>
function OnClientLoad(editor, args) {
editor.get_contentArea().setAttribute("spellcheck", "false");
}
</script>
<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.