How to change font of text box?

Last post 07-22-2015, 9:40 AM by Pilotaso. 6 replies.
Sort Posts: Previous Next
  •  06-03-2005, 4:00 PM 7231

    How to change font of text box?

    How can I change the font and size of the text displayed in the text area in CuteEditor?

  •  06-03-2005, 4:06 PM 7234 in reply to 7231

    Re: How to change font of text box?

    Please check EditorWysiwygModeCss property and EditorBodyStyle :

    EditorWysiwygModeCss:
     
    Specifies the location of the style sheet that will be used by the editable area. Multiple Style Sheets are supported.

    Example:   editor.EditorWysiwygModeCss = "example.css,~/portal.css,/default.css"    

    Editor.EditorBodyStyle Property:

    The style to be applied to the Editor body.

    Example: editor.EditorBodyStyle="background-color:tan;Color:white"

    Hope it helps.



     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  06-03-2005, 4:52 PM 7237 in reply to 7234

    Re: How to change font of text box?

    Thanks for the reply, but I'm still not able to set the font of the text body.

    If I use EditorWysiwygModeCss, I don't know what css tag to use. I had a look in asp.css, but I can't figure out which part applies to the editor's text area.

    I tried EditorBodyStyle but it did not work. (This property is not mentioned in the documentation by the way).

    I used editor.EditorBodyStyle="background-color:tan;font-family:verdana,arial,helvetica;font-size:11px"
  •  06-03-2005, 5:15 PM 7238 in reply to 7237

    Re: How to change font of text box?

    Aha - I figured out that it's the BODY tag that applies, the following gives me what I want:

    body {
    font:normal 11px verdana,arial;background-color: #ffffff;
    }
  •  03-08-2006, 6:36 PM 16867 in reply to 7238

    Re: How to change font of text box?

    yes... but that property needs to work.  while it seems all dandy your fix - imagine when the next time ur stuck with a body tag that has a dark color... then the control becomes unusable - or your forced to try an order the CSS's and hope the body tag tag from one of the CSSs is usable.
     
    CuteSoft.net please review this tag... it is very much needed.
     
    D.
  •  03-08-2006, 6:39 PM 16868 in reply to 16867

    Re: How to change font of text box?

    Documentation is needed for this property too... I was placing a CSS element in there with no luck.. (e.g.  .EditorBck) -
     
    silly me, tricks are for kids
     
    D.
  •  07-22-2015, 9:40 AM 80540 in reply to 16868

    Re: How to change font of text box?

    I really liked this information.
    Smartmatic
View as RSS news feed in XML