We help IT Professionals succeed at work.

asp ajax editor

JCWEBHOST
JCWEBHOST asked
on
Hey guys i have placed an asp ajax editor in my site. My problem is that i need to replace the default font to a custom font.

i have create a face font in my css and what to use that font.
Comment
Watch Question

Commented:
Use the DocumentCssPath property.
 
Create your custom CSS file myCustomEditorDocument.css and edit some styles:
 
body  {
   color:#404040; background-color: #fff;
   border-width: 0px; margin: 0px; padding: 2px;
   }
 body,table td
   {
   font-family: tahoma; font-size: 11pt;
   }
 h1  {
   font-size: 24pt;
   }
 h2  {
   font-size: 18pt;
   }
 h3  {
   font-size: 14pt;
   }
 h4  {
   font-size: 12pt;
   }
 h5  {
   font-size: 10pt;
   }
 h6  {
   font-size:  8pt;
   }  

Now refer to this CSS file:
 
<HTMLEditor:Editor runat="server" DocumentCssPath="myCustomEditorDocument.css" ... />

If this CSS file exists in another folder, correct the DocumentCssPath property.


REf.Link:  http://forums.asp.net/p/1712172/4560734.aspx/1?Ajax+editor+font+change