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

  •  06-15-2007, 1:56 PM

    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

View Complete Thread