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

Last post 12-16-2011, 6:32 PM by ARJDESIGNS. 3 replies.
Sort Posts: Previous Next
  •  12-15-2011, 5:33 PM 72035

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

    Cute Editor for .NET is using "em" and I would like to use "i" for intalic.  How do I change this?
  •  12-16-2011, 5:55 AM 72043 in reply to 72035

    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 
  •  12-16-2011, 3:49 PM 72057 in reply to 72043

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

    Hi Ken,
     
    Is there another way to do this?  Maybe by editing a file in the "CuteSoft_Client" folder?
     
    Also, what is I want to change both em and strong? em to i and strong to b 
     
    -Alex 
  •  12-16-2011, 6:32 PM 72059 in reply to 72057

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

    This support article did the trick:
     
    To use the physical tags (<b> and <i>), set UsePhysicalFormattingTag property to True.
View as RSS news feed in XML