PDA

View Full Version : [CLOSED] Unable to change Italic and Underline Icons in HTML Editor Toolbar



RCM
Jan 28, 2013, 4:42 PM
hi,
I am unable to change Italic and Underline Icons in HTML Editor Toolbar. see sample below,



<%@ Page Language="C#" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>Ext.NET Example</title>
<style type="text/css">
.my-htmleditor .x-html-editor-tb .x-edit-bold
{
background-image: url(bold.png);
}

.my-htmleditor .x-html-editor-tb .x-edit-italic
{
background-image: url(bold.png);
}
</style>
</head>
<body>
<form id="Form1" runat="server">
<ext:ResourceManager ID="ResourceManager1" runat="server" Locale="de" />
<ext:HtmlEditor ID="HtmlEditor1" runat="server" CtCls="my-htmleditor" />
</form>
</body>
</html>

Baidaly
Jan 28, 2013, 11:45 PM
Hello!

Try to set background-position:



<style type="text/css">
.my-htmleditor .x-html-editor-tb .x-edit-bold
{
background-image: url(bold.png);
background-position: 0;
}

.my-htmleditor .x-html-editor-tb .x-edit-italic
{
background-image: url(bold.png);
background-position: 0;
}
</style>