Topbar
Topbar
Sign in
|
Join
|
Client Center
Home
Products
Client Center
Contact
Purchase
Support forums
»
Products
»
Cute Editor for .NET
»
How do I configured "italic" to be "i" and not "em"?
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:
Oldest to newest
Newest to oldest
Previous
Next
12-15-2011, 5:33 PM
72035
ARJDESIGNS
Joined on 01-11-2011
San Francisco, CA
Posts 6
How do I configured "italic" to be "i" and not "em"?
Reply
Quote
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
Kenneth
Joined on 02-13-2008
Posts 3,886
Re: How do I configured "italic" to be "i" and not "em"?
Reply
Quote
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
ARJDESIGNS
Joined on 01-11-2011
San Francisco, CA
Posts 6
Re: How do I configured "italic" to be "i" and not "em"?
Reply
Quote
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
ARJDESIGNS
Joined on 01-11-2011
San Francisco, CA
Posts 6
Re: How do I configured "italic" to be "i" and not "em"?
Reply
Quote
This support article did the trick:
http://cutesoft.net/asp/document/scr/CuteEditor.Editor.UsePhysicalFormattingTags.html
To use the physical tags (<b> and <i>), set UsePhysicalFormattingTag property to True.