Default CSS, font type and font size

Last post 05-25-2007, 9:03 AM by tomSymbius. 6 replies.
Sort Posts: Previous Next
  •  05-22-2007, 10:46 AM 29899

    Default CSS, font type and font size

    Hello,
    i am encountering some problems (CuteEditor 5.2 for ASP) and i am looking for some advice. I have wasted to much time trying to go through all of the settings and try to fix the second problem.

    at first, i wanted to ask: is it possible to set the font type and size to the default values form the list (possibly later will consider to lock)?
    at second: i am having problems with the initial font size on initiation of the CuteEditor in IE 6. When i go to a page with the CuteEditor in firefox, i get kind of desired size for the newly typed in text, but not in IE.
    The IE size is like 6-7px, when i type something in and switch to the HTML view, i get the correct size (and color) for the font/text.
    The Firefox seems to be 12px, in type mode, and 11 in HTML view.
    This is how i initiate the CuteEditr:

                                dim editor
                                set editor = New CuteEditor                    
                                editor.ID = "rte1"
                                editor.FilesPath = "CuteEditor_Files"
                                editor.ImageGalleryPath = "/db_images/"
                                editor.MaxImageSize = 512
                                editor.ThemeType="Office2003"
                                editor.AutoConfigure = "wlp"
                                editor.EditorWysiwygModeCss = "edit.css"                    
                                editor.Width = 440
                                editor.Height = 200
                                editor.Draw()

    The EDIT.CSS has the main body setting for the font (0.7em/1.6em Verdana, Helvetica, Arial, sans-serif and color) 3 headings which are available in CSS CLASS selection box, style for OL, UL, A and other usual css.

    Am i missing some settings? did i not include everything in my CSS?

    I am working on a localhost, IIS 5, Win2k.

    Any advice / help will be very appreciated.

    Thank
  •  05-22-2007, 9:27 PM 29942 in reply to 29899

    Re: Default CSS, font type and font size

    tomSymbius,
     
    Try open EDIT.CSS file and remove everything.
     
    Then copy the following code into it:
     
    body,table,p,div { font:normal 12px arial;}
     
    Then test again.
     
    Keep me posted
     
     

    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

  •  05-23-2007, 5:14 AM 29966 in reply to 29942

    Re: Default CSS, font type and font size

    Hello Adam,

    well, i have tested it.

    IE: when the page with CE loads, the font is set to Verdana, but as soon as i start typing it switches to Arial.

    FF: seems to be using Verdana.

    Any other thoughts?

    Thanks

  •  05-23-2007, 2:15 PM 29998 in reply to 29966

    Re: Default CSS, font type and font size

    tomSymbius,
    Cute Editor uses default font of the current page. The default font of your web page is Verdana.
     
    So when it loads, it shows Verdana.
     
    When you start to type in the editor, the default font of the current selection is Arial. Because in Edit.css file, you have the following code:
     
    body,table,p,div { font:normal 12px arial;}
     
    Does it make sense?
     
     
     
     

    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

  •  05-24-2007, 5:00 AM 30036 in reply to 29998

    Re: Default CSS, font type and font size

    Hello Adam,

    i have been kind of expecting this.

    It seems i need to sort my css.

    I just have a quick question about copy-paste-into-cute-editor function. I have set the "paste" option to clean text, IE pastes the code right away, but FF pulls a popup that user have to paste into first, then users needs to click Insert.
    Is there a way to switch that off? because it seems to be working randomly. What i mean is that once it opens 1 popup, the other time it opens 2 or 3 unnecessary popups.

    Thanks

  •  05-24-2007, 5:11 PM 30074 in reply to 30036

    Re: Default CSS, font type and font size

    tomSymbius,
     
    Firefox doesn't allow editor to acces the clipboard data of the user machine directly. CE can't get the data from the clipboard. So it uses a dialog to allow the user paste the content into it.
     
    There is nothing we can do about this.
     
     

    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

  •  05-25-2007, 9:03 AM 30116 in reply to 30074

    Re: Default CSS, font type and font size

    Thanks for all your help Adam.
View as RSS news feed in XML