CSS Issues

Last post 01-10-2006, 4:46 PM by Adam. 1 replies.
Sort Posts: Previous Next
  •  01-07-2006, 5:12 PM 14520

    CSS Issues

    I can not get the several things to work related to CSS.
     
    1) Setting the Style sheets withing the Editor (Initial Display Fonts etc)
    2) Populating the style sheet drop down from the style sheet. I can do it manually with a list but it does not use the re,lated style sheet
     

    <link rel="stylesheet" type="text/css" href="../../../Style/Member.css" />

    <link rel="stylesheet" href="../../CuteEditor/asp.css"  type="text/css" />

     

    <%

     

                            EditorWysiwygModeCss = "../../CuteEditor/asp.css"

                            EditorStyleSheetPath = "../../../Style/Member.css"

                            EditorWysiwygModeCss = "../../../Style/Member.css"

                            EditorStyleDropDownMenuNames = "BODY,Normal,IntroText,DWT,MemberMenu,Title,Select,textarea,Form,FormData,Form-RT,Form-RTsm,Title-Rev,Title-Rev-L,Title-Rev-Indent,Rpt-Table,Rpt-Head,Rpt-Body,Rpt-BodySM,Rpt-Body-R,Rpt-Body2,Title,Rpt-Body2Data,Rpt-BodyDataRed,HR-Bar,HR-Grey,MbrName,MbrAddr,MbrPhone,MbrInfo,PhoneTitle,Txt-Red,Txt-Blue,Txt-Black,Txt-Green,Txt-White,Txt-Yellow,Welcome-strip,Date-Bar,,Photo-Bar,Event-Display,Event-Desc,Event-Desc2"

                            EditorStyleDropDownMenuList = "BODY,Normal,IntroText,DWT,MemberMenu,Title,Select,textarea,Form,FormData,Form-RT,Form-RTsm,Title-Rev,Title-Rev-L,Title-Rev-Indent,Rpt-Table,Rpt-Head,Rpt-Body,Rpt-BodySM,Rpt-Body-R,Rpt-Body2,Title,Rpt-Body2Data,Rpt-BodyDataRed,HR-Bar,HR-Grey,MbrName,MbrAddr,MbrPhone,MbrInfo,PhoneTitle,Txt-Red,Txt-Blue,Txt-Black,Txt-Green,Txt-White,Txt-Yellow,Welcome-strip,Date-Bar,,Photo-Bar,Event-Display,Event-Desc,Event-Desc2"

                            EditorFilesPath = "../../CuteEditor/CuteEditor_Files"       

                            EditorImageGalleryPath = "../../../" & SaveFilePath

                            EditorFlashPath= "../../../" & SaveFilePath                                

                            EditorDocumentPath = "../../../" & SaveFilePath

    intDesc =  InStr(Long_Description,  "<br/>")

    If intDesc=0 then Long_Description=Replace(Long_Description, Chr(13), "<br>") end if                           

                                       

                                        Set editor = New CuteEditor  'Create a new editor class object

                                        editor.UseNetSpell = false                                                        

                                        editor.ID = "Long_Description"

                                        editor.Text = Long_Description

                                        editor.EditorWysiwygModeCss = EditorEditorWysiwygModeCss

    '                                   editor.StyleSheetPath = EditorStyleSheetPath

                                        editor.StyleDropDownMenuNames = EditorStyleDropDownMenuNames

                                        editor.StyleDropDownMenuList = EditorStyleDropDownMenuList

                                        editor.FilesPath = EditorFilesPath         

                                        editor.ImageGalleryPath = EditorImageGalleryPath

                                        editor.FlashPath= EditorFlashPath                    

                                        editor.DocumentPath = EditorDocumentPath     

                                        editor.EditorBodyStyle = "table { font:normal 10px arial; }"         

                                       

                                        editor.Draw()

     

    %>

    Stephen P. Blythe,
    SPB@blytheco.comwww.blytheco.com

     

  •  01-10-2006, 4:46 PM 14594 in reply to 14520

    Re: CSS Issues

    Stephen,
     
    Please try use the absolute path.
     
    For example:
     
    editor.EditorWysiwygModeCss  = "/CuteEditor/asp.css"
     
     

    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