Re: How do I configured "italic" to be "i" and not "em"?

  •  12-16-2011, 5:55 AM

    Re: How do I configured "italic" to be "i" and not "em"?

    Hi ARJDESIGNS,
     
    You can use the html filter to achieve it, try the example below
     
    <%@ Page Language="C#" ValidateRequest="false" %>
    <%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>
    <html>
    <head>
        <title>example </title>
    </head>
    <body>
        <form id="Form1" runat="server">
            <CE:Editor ID="editor1" runat="server">
            </CE:Editor>
        </form>
    </body>
    </html>
    <script type="text/javascript">      
    function CuteEditor_FilterHTML(editor,code)   
    {   
        code=code.split("<em").join("<i");
        return code.split("</em").join("</i");
    }   
    function CuteEditor_FilterCode(editor,code)   
    {   
        codde=code.split("<em").join("<i");
        return code.split("</em").join("</i");
    }   
    </script>
     
    Regards,
     
    Ken 
View Complete Thread