Looking for clarification on CSS style loading on DNN / CuteEdit

Last post 06-15-2007, 3:36 PM by jbegley. 2 replies.
Sort Posts: Previous Next
  •  06-15-2007, 11:00 AM 30788

    Looking for clarification on CSS style loading on DNN / CuteEdit

    I noticed in the forums that the style sheets loaded to populate the CSS classes are:
     
                    Dim s1, s2, s3, s4 As String
                    s1
    = Common.Globals.HostPath & "default.css" 'default css
                    s2 = PortalSettings.ActiveTab.SkinPath & "skin.css" 'skin css
                    s3 = (PortalSettings.ActiveTab.SkinSrc).Substring(0, PortalSettings.ActiveTab.SkinSrc.LastIndexOf("/")) & "/skin.css"
                    s4 = PortalSettings.HomeDirectory & "portal.css" 'portal stylesheet
                    cntlCE.EditorWysiwygModeCss = s1 & "," & s2 & "," & s3 & ", " & s4
     
    Is the s3 ref to the container style sheet? I am not a developer, but it doesn't appear to be. If it is not container.css, what is it?
     
    Finally, if container.css is not getting loaded, can I load this by hacking in a 5th setting? (s5)
     
    Thanks in advance,
     
     
    Jim Begley
    Glide Computing
     
  •  06-15-2007, 1:56 PM 30800 in reply to 30788

    Re: Looking for clarification on CSS style loading on DNN / CuteEdit

    Glide,
     
    It looks like you are using an old version of provider.
     
    The latest code is as following. You can modify/add/remove it to meet your requirements.

              
      'initialize the control
                If _EditorWysiwygModeCss = "" Then
                    Dim s1, s2, s3, s4 As String

                    s1 = Common.Globals.HostPath & "default.css" 'default css
                    s2 = PortalSettings.ActiveTab.SkinPath & "skin.css" 'skin css
                    s3 = (PortalSettings.ActiveTab.SkinSrc).Substring(0, PortalSettings.ActiveTab.SkinSrc.LastIndexOf("/")) & "/skin.css"
                    s4 = PortalSettings.HomeDirectory & "portal.css" 'portal stylesheet

                    If File.Exists(HttpContext.Current.Server.MapPath(s1)) Then
                        _EditorWysiwygModeCss = s1
                    End If

                    If File.Exists(HttpContext.Current.Server.MapPath(s2)) Then
                        _EditorWysiwygModeCss = _EditorWysiwygModeCss & "," & s2
                    End If

                    If File.Exists(HttpContext.Current.Server.MapPath(s3)) Then
                        _EditorWysiwygModeCss = _EditorWysiwygModeCss & "," & s3
                    End If


                    If File.Exists(HttpContext.Current.Server.MapPath(s4)) Then
                        _EditorWysiwygModeCss = _EditorWysiwygModeCss & "," & s4
                    End If
                End If

     
     

    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

  •  06-15-2007, 3:36 PM 30805 in reply to 30800

    Re: Looking for clarification on CSS style loading on DNN / CuteEdit


     Thanks, I will look at upgrading the provider, but I am still confused as to what style sheet s3 is loading. According to DNN doc, the third priority in order would be the container sheet, which was a level I was hoping to use. I just don't want to do a lot of work developing container style sheets if the editor is not going to expose the classes.
     
    I understand that s1 is the host level sheet, s2 loads the skin style sheet for that tab and s4 loads the portal style sheet, but what is "PortalSettings.ActiveTab.SkinSrc.LastIndexOf("/"))"
     
    Thanks in advance
     
    Jim Begley
    Glide Computing
     
     
View as RSS news feed in XML