Live Support, Chat, Upload Control and Rich Text Editor
Welcome to Support forums Sign in | Join | Help |Client Center
in Search

Changing the default font size in editor

Last post 03-03-2008, 2:54 PM by Adam. 1 replies.
Sort Posts: Previous Next
  •  03-02-2008, 5:40 AM 37485

    Changing the default font size in editor

    Setting the EditorBodyStyle = "font:normal 0.7em verdana" works great but the text inside a table is massive! I've tried changing the EditorWysiwygModeCSS = "wbp.css"  and placed a wbp.css file in the CuteEditor_Files/styles folder which defines td {font-size:1em;} or even 10em and nothing happens. I don't want the user having to modify the default font size in the editor as this will override my style sheet for the website.
     
    How can I make ALL text appear the same size as the EditorBodyStyle setting?
     
  •  03-03-2008, 2:54 PM 37506 in reply to 37485

    Re: Changing the default font size in editor

    EditorBodyStyle can only change the style of the document body.
     
    For table, please add the following code into your style sheet file and use .EditorWysiwygModeCss Property to apply it to editor.
     
    td,th {
     font-family: Arial, Helvetica, sans-serif;
     font-size: 12px;
    }
     

    .EditorWysiwygModeCss Property

    Specifies the location of the style sheet that will be used by the editable area. Multiple Style Sheets are supported. Example EditorWysiwygModeCss="example.css,/default.css"

     


    Example Code

    <?php
             $editor=new CuteEditor();
             $editor->ID="Editor1";
             $editor->Text="Type here";
             $editor->FilesPath="CuteEditor_Files";
             $editor->EditorWysiwygModeCss="example.css,/default.css";
             $editor->Draw();
             $editor=null; 

             //use $_POST["Editor1"]to catch the data
    ?>

     

     


    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
Powered by ASP.Net
Copyright 2003 - 2017 CuteSoft Components Inc.. All rights reserved.