Skip to content

Latest commit

 

History

History
49 lines (37 loc) · 2.09 KB

configure-browser-spellcheck.md

File metadata and controls

49 lines (37 loc) · 2.09 KB
title page_title description slug tags published position
Configure Browser Spellcheck in RadEditor
Configure Browser Spellcheck in RadEditor - RadEditor
Check our Web Forms article about Configure Browser Spellcheck in RadEditor.
editor/how-to/configure-browser-spellcheck
configure, browser, spellcheck, underline, red, color, wrong, word, ajaxspellcheck, spelling, editor, lang
true
10

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]({%slug editor/functionality/spellchecker/overview%}) of RadEditor and it is configurable by the spellcheck and lang DOM attributes.

caption Example 1: How to disable browser spellcheck in RadEditor

<telerik:RadEditor runat="server" ID="RadEditor1" RenderMode="Lightweight" OnClientLoad="OnClientLoad">
</telerik:RadEditor>

<script>
    function OnClientLoad(editor, args) {
        editor.get_contentArea().setAttribute("spellcheck", "false");
    }
</script>

caption Example 2: How to change the language of the browser spellcheck in RadEditor

<telerik:RadEditor runat="server" ID="RadEditor1" RenderMode="Lightweight" OnClientLoad="OnClientLoad">
</telerik:RadEditor>

<script>
    function OnClientLoad(editor, args) {
        editor.get_contentArea().setAttribute("lang", "de");
    }
</script>

note Spellcheck language depends also on the installed language dictionaries in the browser.

See Also