Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
220
Css / markup used by WebHtmlEditor
posted

Hi,

I want to change the way text is displayed (by default) in the text part of the editor. Where does the editor gets its style applied from ?
Changing the Font-names property results in another font used by the editor the font but I can't change the font-size however. Changing the Font-size property only results in changing the tabs design & html at the bottom. Am I missing something ?

Any help would be appreciated.

 

Parents
  • 24497
    Verified Answer
    posted

    Hi,

    You may use properties of TextWindow. For example,

    <TextWindow Font-Bold="True" BackColor="#FFCC99" Font-Names="Courier New" Font-Size="15pt" />

    You also may try its CssClass, but that might work only under IE, because, for other browsers the <iframe> is used as edit-field and its document will not be able to see css style defined in parent window.

    <TextWindow CssClass="css1" />

    <style type="text/css">
    .css1
    {
     
    font-weight:bold;
     
    background:red;
     
    font-family:Courier New;
     
    font-size:25pt;
    }
    </style>

Reply Children
No Data