|
DotNetNuke Background problem
Last post 09-12-2005, 8:02 PM by Adam. 13 replies.
-
08-22-2005, 12:45 AM |
-
kwfriedman
-
-
-
Joined on 07-31-2005
-
-
Posts 17
-
-
|
DotNetNuke Background problem
|
Hi,
I have just installed the editor for DotNetNuke 3.1. It works correctly other than the text area seems to have assumed the background of my DNN portal. In my case the background is nearly black and I cannot see what I am doing. I would like the text area to be white. I have tried to change every parameter in the style sheets baut cannot seem to override this. Please help.
Regards
Wayne Friedman | |
|
|
-
08-22-2005, 12:54 AM |
-
Adam
-
-
-
Joined on 09-23-2003
-
Aurora, ON
-
Posts 18,678
-
-
|
Re: DotNetNuke Background problem
Wayne ,
Please open the CEHtmlEditorProvider.vb file.
Change the following code:
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
To
Dim s2, s3, s4 As String 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 = s2 & "," & s3 & ", " & s4
Then recompile your provider.
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
|
|
-
08-22-2005, 1:03 AM |
-
kwfriedman
-
-
-
Joined on 07-31-2005
-
-
Posts 17
-
-
|
Re: DotNetNuke Background problem
I have just tried to recompile, but I am showing CuteEditor and DotNetNuke as undefined references, so I am getting loads of errors. Surely it is not safe to have to recompile your code?
|
|
-
08-22-2005, 1:11 AM |
-
08-22-2005, 1:31 AM |
-
kwfriedman
-
-
-
Joined on 07-31-2005
-
-
Posts 17
-
-
|
Re: DotNetNuke Background problem
I made the changes as requested. (Shown below) and copied the new dll file to the dnn\bin direcotry, but I am seeing no change to behaviour. Is there something else I should be doing?
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
'cntlCE.EditorWysiwygModeCss = s1 & "," & s2 & "," & s3 & ", " & s4
Dim s2, s3, s4 As String
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 = s2 & "," & s3 & ", " & s4
Else
cntlCE.EditorWysiwygModeCss = _EditorWysiwygModeCss
|
|
-
08-22-2005, 1:57 AM |
-
kwfriedman
-
-
-
Joined on 07-31-2005
-
-
Posts 17
-
-
|
Re: DotNetNuke Background problem
After getting no change to the above, I went and commented out most of the code as follows below. I am therefore setting EditorWysiwygModeCss to "", which is obviously not what I am meant to be doing. However, it now seems to work better. EditorBodyStyle can be configured in Web.Config. However my formating and paragraphing seems to have gone to hell. So obviously the answer is somewhere between what you originally gave me and what I did .
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
'cntlCE.EditorWysiwygModeCss = s1 & "," & s2 & "," & s3 & ", " & s4
' Dim s2, s3, s4 As String
' 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 = s2 & "," & s3 & ", " & s4
cntlCE.EditorWysiwygModeCss = _EditorWysiwygModeCss
Else
cntlCE.EditorWysiwygModeCss = _EditorWysiwygModeCss
|
|
-
08-22-2005, 2:01 AM |
-
08-22-2005, 2:13 AM |
-
kwfriedman
-
-
-
Joined on 07-31-2005
-
-
Posts 17
-
-
|
Re: DotNetNuke Background problem
It is part of my portals default skin. It is actually not a pure black colour, but rather a black gradient.
|
|
-
08-22-2005, 2:20 AM |
-
08-22-2005, 2:34 AM |
-
kwfriedman
-
-
-
Joined on 07-31-2005
-
-
Posts 17
-
-
|
Re: DotNetNuke Background problem
Sorry, I do use skin.css.
The code looks like this:
body {
background: #FFF;
border-left: 0px;
border-right: 0px;
height: 100%;
margin: 0px;
background-image: url(images/bg.gif);
}
|
|
-
08-22-2005, 2:39 AM |
-
08-22-2005, 2:51 AM |
-
08-22-2005, 4:22 AM |
-
kwfriedman
-
-
-
Joined on 07-31-2005
-
-
Posts 17
-
-
|
Re: DotNetNuke Background problem
If I read your code correctly, you are looking for either the general portal skin or for the skin of the active tab. In my portal, they are one and the same. Does that help. Surely EditorBodyStyle takes precedence?
|
|
-
09-12-2005, 8:02 PM |
|
|
|