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

Last post 03-05-2010, 9:33 PM by Eric. 1 replies.
Sort Posts: Previous Next
  •  03-05-2010, 1:29 PM 59197

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

    Hi,
     
    Can i use only spell check with no rich text formatting and no other buttons?
    I tried below but when i copy from word , the formatted text is getting copied into the box.
     

    <ce:Editor id="Editor1" runat="server" TemplateItemList="NetSpell" ShowBottomBar="false"

    BorderColor="Black" BreakElement="P">

    <FrameStyle BackColor="White" BorderColor="#DDDDDD" BorderStyle="Solid" BorderWidth="1px"

    CssClass="CuteEditorFrame" Height="100%" Width="100%"/>

    </ce:Editor>

     
    Thanks
    A
    Filed under:
  •  03-05-2010, 9:33 PM 59200 in reply to 59197

    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 as RSS news feed in XML