Re: newbie css help (And two other newbie questions)

  •  04-08-2008, 8:36 AM

    Re: newbie css help (And two other newbie questions)

    pmagoo,
     
    >>I have a very simple css file that I also tried to apply, but couldn't get that to work either.....
     
    Please check the following property:
     

    Editor.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
    ?>
     
    >>Question 2: how do i get rid of the "View HTML" button at the bottom of the cute editor?
     
    Please check the following property:
     

    Editor.ShowHtmlMode Property

    Specifies whether the Html Mode tab appear.

     

    Example Code

    <?php
             $editor=new CuteEditor();
             $editor->ID="Editor1";
             $editor->Text="Type here";
             $editor->FilesPath="CuteEditor_Files";
             $editor->ShowHtmlMode=false;
             $editor->Draw();
             $editor=null; 

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

    >>Question 3: how do i make the default text in the editor Verdana.  I do not want to give them any more choices than that.

     

    Please check the Editor.EditorBodyStyle and EditorWysiwygModeCss property. 

    Editor.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,~/portal.css,/default.css"  

     

    Editor.EditorBodyStyle Property

    The style to be applied to the Editor body.   

    Cute Editor uses default font of the current page.  The default font of web page is Times new roman. If you want to change the default font from Times new roman to Verdana, you can add the following code into the style sheet file:

    body, td { font-family: Verdana; }

    Or you can use Editor.EditorBodyStyle Property:

    Editor1.EditorBodyStyle="font-family: Verdana";

    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 Complete Thread