Re: Can i use only spell check with no rich text formatting.

  •  03-05-2010, 9:33 PM

    Re: Can i use only spell check with no rich text formatting.

    Dear akkineni,
     
    Please refer to the following code:
    <%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>
    <%@ Page Language="C#"%>
    <HTML>
     <HEAD>
      <title>ASP and ASP.NET WYSIWYG Editor - Use CuteEditor as an spell checker</title>
     </HEAD>
     <body>
      <form runat="server">
       <table border="0" cellpadding="0" cellspacing="0">
        <tr>
         <td width="10" nowrap></td>
         <td width="20" nowrap></td>
         <td valign="top" width="760">
          <b>Use CuteEditor as an image selector</b>
          <hr>
          This example demonstrates how to use CuteEditor as an spell checker.
          <br>
          <br>
          <INPUT type="button" value="Spell Check" onclick="callSpellCheck()" id="Change"
                                runat="server" NAME="Change">  
          
          <div style="height: 345px">
           <CE:Editor id="Editor1" runat="server" Width="1" Height="1" AutoConfigure="None" ShowHtmlMode="False" ShowPreviewMode="False" EnableContextMenu="false" ShowGroupMenuImage="False" ShowBottomBar="False" BackColor="White" BorderColor="White"></CE:Editor>
                                <asp:TextBox ID="TextBox1" runat="server" Height="300px" Width="764px" TextMode="MultiLine"></asp:TextBox>
                                <br>
          </div>
         </td>
        </table>
      </form>
     
    <Script Language="javascript">
        function callSpellCheck() 
        { 
       var editor1 = document.getElementById('<%=Editor1.ClientID%>');
                editor1.FocusDocument();
                var editdoc = editor1.GetDocument();
                editor1.setHTML(document.getElementById('<%=TextBox1.ClientID%>').value);           
                editor1.ExecCommand('netspell',false,'netspell');
              
        }    
       
    </script>
     </body>
    </HTML>
     
    Regards,
    Eric
View Complete Thread