Change font in the TextArea

Last post 03-26-2005, 1:00 AM by Adam. 2 replies.
Sort Posts: Previous Next
  •  03-14-2005, 5:54 PM 4624

    Change font in the TextArea

    How can set the Font style in the CuteEditor Text area by default to my parent document's font style?
    I mean, the text in the Text area should be same as the page it is embedded in while the user type in the text in the textarea.
  •  03-14-2005, 6:54 PM 4628 in reply to 4624

    Re: Change font in the TextArea

    I don't think its possible.  See my post here: http://www.cutesoft.net/forums/4370/ShowPost.aspx

    Cheers,
    Andrew

  •  03-26-2005, 1:00 AM 4989 in reply to 4624

    Re: Change font in the TextArea

    praveen,
     
    There are two methods to specify the formatting used in the editor. In your case, you want the formatting used in the editor is same as the formatting used in the parent page.

    1. Use Editor.EditorWysiwygModeCss Property to specify the location of the style sheet that will be used by the editable area. Multiple Style Sheets are supported. Find  the location of containing style sheet, and append it to EditorWysiwygModeCss property as followings:

    Example EditorWysiwygModeCss="example.css,~/yourparentpage.css"

    --------------------------------------------------------------------------------------------------------

    2. If your parent page defines styles in the page instead of defining styles in the external style sheets,  first you need to set Editor.AutoParseClasses property to false.

    Then copy all the styles in your parent page into template.aspx.

    When Editor.AutoParseClasses property is set to false, the editor will automatically use the styles defining in the CuteSoft_clients/cuteeditor/template.aspx file.


    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

View as RSS news feed in XML