<%@ Page Language="C#" AutoEventWireup="true" %>

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
</head>
<body class="BODY">
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager" runat="server" />

        <script type="text/javascript">
        function OnClientModeChange(editor, args)
        {
            var mode = editor.get_mode();
            if (mode == 2)
            {
                //get a reference to the Html mode textarea and disable it
                var htmlMode = editor.get_textArea(); 
                htmlMode.disabled = "true";
            }
        }
        </script>

        <telerik:RadEditor ID="RadEditor1" runat="server" OnClientModeChange="OnClientModeChange">
        </telerik:RadEditor>
    </form>
</body>
</html>
