DNN 4.3.4 populating "Css Class" dropdown list

Last post 10-05-2006, 9:53 AM by Adam. 7 replies.
Sort Posts: Previous Next
  •  09-26-2006, 2:58 PM 23094

    DNN 4.3.4 populating "Css Class" dropdown list

    hi,
     
    When using the Cute editor in Dotnetnuke v4.3.4 I wonder from where the styles are coming that populates the "Css Class" dropdown list. Where can I add my own styles so that they will appear in this dropdown list?
     
    Thanks,
    jan blomqvist
  •  09-26-2006, 5:27 PM 23097 in reply to 23094

    Re: DNN 4.3.4 populating "Css Class" dropdown list

    Jan,
     
    The code includes the DNN 4 css is as following:
     
        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
     
    If you want to add your own styles, [lease add the EditorWysiwygModeCss="/somefolder/some.css" into the CuteEditor section of DNN web.config.
     
     

    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

  •  09-28-2006, 7:16 AM 23142 in reply to 23097

    Re: DNN 4.3.4 populating "Css Class" dropdown list

    Hi Adam,
     
    I made a quick reply, and when I was proof reading it, the page refreshed and all what I had written disappeared - not so good.
     
    If I add some extra class styles into portal.css, what do I have to do in order to have them appear in the css-class dropdown box in the editor.

    Thanks,
    Jan
  •  09-28-2006, 11:44 AM 23154 in reply to 23142

    Re: DNN 4.3.4 populating "Css Class" dropdown list

    blm0423:
    Hi Adam,
     
    I made a quick reply, and when I was proof reading it, the page refreshed and all what I had written disappeared - not so good.
     
    If I add some extra class styles into portal.css, what do I have to do in order to have them appear in the css-class dropdown box in the editor.
     
    Jan,
     
    Do you mean this forum refresh itself?
     
     
    blm0423:
    If I add some extra class styles into portal.css, what do I have to do in order to have them appear in the css-class dropdown box in the editor.
     
    If you want to add your own styles, you can addd EditorWysiwygModeCss="/somefolder/portal.css" into the CuteEditor section of DNN web.config.
     
    Keep me posted
     
     
     

    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

  •  09-29-2006, 2:49 AM 23191 in reply to 23154

    Re: DNN 4.3.4 populating "Css Class" dropdown list

    Adam,
     
    "Refresh" - I had pressed the "Quick-Reply" link and I guess when the backgrund refreshed so did the Edit window and then it was empty. I reported it only because it's good if you know about it. I make normal reply'es now.

    Back to my issue:
    - Where can I find some documentation?
    - There was no CuteEditor section in my DNN WEB.CONFIG, so where should "EditorWysiwygModeCss="/somefolder/portal.css" " be created?
    - The styles in the editor, they seems to be coming from DNN, are they loaded from the actual physical files in the DNN directory structure?
     
    -Jan
  •  09-29-2006, 1:47 PM 23220 in reply to 23191

    Re: DNN 4.3.4 populating "Css Class" dropdown list

    Jan,
     
    Thanks for the head up. We will look into this issue.
     
    >>Where can I find some documentation?
     
    Cute Editor Class reference:
     
     
    Cute Editor Developer's Guide:
     
     
    >>There was no CuteEditor section in my DNN WEB.CONFIG, so where should "EditorWysiwygModeCss="/somefolder/portal.css" " be created?
     
    Yes.
     
    <htmlEditor defaultProvider="CEHtmlEditorProvider" >
                <providers>
        <clear/>
                    <add name = "FtbHtmlEditorProvider"
                            type = "DotNetNuke.HtmlEditor.FtbHtmlEditorProvider, DotNetNuke.FtbHtmlEditorProvider"                   
                         providerPath = "~\Providers\HtmlEditorProviders\FtbHtmlEditorProvider\"
                    />
                    <add name="CEHtmlEditorProvider"
            type="DotNetNuke.HtmlEditor.CEHtmlEditorProvider, DotNetNuke.CEHtmlEditorProvider"
            providerPath="~\Providers\HtmlEditorProviders\CEHtmlEditorProvider\CuteSoft_Client\CuteEditor\"
                UseDNNRoleASFileNamePrefix="false"  
            UseDNNRootImageDirectory="true"
            UseDNNDefaultWidth="false"       
            RemoveServerNamesFromUrl="true"
            ConvertHTMLTagstoLowercase="true"
            EditorWysiwygModeCss="/somefolder/portal.css" 
            UseRelativeLinks="true"
            UseHTMLEntities="true"
         RenderRichDropDown="true"
         UseSimpleAmpersand="false"
         CustomCulture=""
         ThemeType="Office2003_BlueTheme"
         DisableAutoFormatting="false"
         BreakElement="div"
         EditorBodyStyle="background-color:#ffffff"
         Admin_AutoConfigure = "Full"
         Admin_SecurityPolicyFile = "admin.config"
         Admin_TemplateItemList = ""
         Admin_DisableItemList = ""
         Admin_AllowPasteHtml  ="true"
         Admin_EditorOnPaste  = "default"
         Admin_ReadOnly = "false"
         Admin_ShowBottomBar ="true"
         Admin_ShowHtmlMode  ="true"
         Admin_ShowPreviewMode  ="true"
         Admin_EnableStripScriptTags  ="false" 
         Admin_EnableContextMenu    = "true"
         Admin_EnableContextMenuEditing  = "true"  
         Admin_EnableContextMenuFormat   = "true"
         Admin_EnableContextMenuInsert  = "true"
         Admin_EnableContextMenuInsertAdvanced  = "true"
         Admin_EnableContextMenuInsertFiles = "true"
         Admin_EnableContextMenuInsertForms = "true"
         Admin_EnableContextMenuRelative = "true"
         Admin_EnableContextMenuTags = "true"
         Admin_EnableContextMenuVerbs = "true"          
         
         Registered_AutoConfigure = "Full"
         Registered_SecurityPolicyFile = "default.config"
         Registered_TemplateItemList = ""
         Registered_DisableItemList = ""
         Registered_AllowPasteHtml  ="true"
         Registered_EditorOnPaste  = "default"
         Registered_ReadOnly = "false"
         Registered_ShowBottomBar ="true"
         Registered_ShowHtmlMode  ="true"
         Registered_ShowPreviewMode  ="true"
         Registered_EnableStripScriptTags  ="false" 
         Registered_EnableContextMenu    ="true" 
         Registered_EnableContextMenuEditing  = "true"  
         Registered_EnableContextMenuFormat   = "true"
         Registered_EnableContextMenuInsert  = "true"
         Registered_EnableContextMenuInsertAdvanced  = "true"
         Registered_EnableContextMenuInsertFiles = "true"
         Registered_EnableContextMenuInsertForms = "true"
         Registered_EnableContextMenuRelative = "true"
         Registered_EnableContextMenuTags = "true"
         Registered_EnableContextMenuVerbs = "true"   
         
         Guest_AutoConfigure = "Minimal"
         Guest_SecurityPolicyFile = "default.config"
         Guest_TemplateItemList = ""
         Guest_DisableItemList = ""
         Guest_AllowPasteHtml  ="true"
         Guest_EditorOnPaste  = "default"
         Guest_ReadOnly = "false"
         Guest_ShowBottomBar ="true"
         Guest_ShowHtmlMode  ="true"
         Guest_ShowPreviewMode  ="true"
         Guest_EnableStripScriptTags  ="false" 
         Guest_EnableContextMenu    ="true"  
         Guest_EnableContextMenuEditing  = "true"  
         Guest_EnableContextMenuFormat   = "true"
         Guest_EnableContextMenuInsert  = "true"
         Guest_EnableContextMenuInsertAdvanced  = "true"
         Guest_EnableContextMenuInsertFiles = "true"
         Guest_EnableContextMenuInsertForms = "true"
         Guest_EnableContextMenuRelative = "true"
         Guest_EnableContextMenuTags = "true"
         Guest_EnableContextMenuVerbs = "true" 
            />
                </providers>
            </htmlEditor>
    >>The styles in the editor, they seems to be coming from DNN, are they loaded from the actual physical files in the DNN directory structure?
     
    Yes.
     
    The styles are loaded from the following 4 files: default.css, skin.css, ActiveTab skin.css and portal.css.
     
        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
     
     

    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

  •  10-05-2006, 3:36 AM 23358 in reply to 23220

    Re: DNN 4.3.4 populating "Css Class" dropdown list

    Hi Adam,
     
    >>The styles in the editor, they seems to be coming from DNN, are they loaded from the actual physical files in the DNN directory structure?
     
    >Yes.
     
    > The styles are loaded from the following 4 files: default.css, skin.css, ActiveTab skin.css and portal.css.
     
    default.css - exists in  Portals\_Default direcory
    portal.css - exists in each portal directory + Portals\_default
    skin.css - exists in each skin directory
     
    Does CuteEditor know which portal.css to load?
    Does CuteEditor know which skin.css to load?
     
    What do you mean by "ActiveTab skin.css"?
     
    Thanks,
    Jan
  •  10-05-2006, 9:53 AM 23362 in reply to 23358

    Re: DNN 4.3.4 populating "Css Class" dropdown list

    Jan,
     
    >>Does CuteEditor know which portal.css to load?
     
    Yes.
     
    Check the following code please:
     
    s4 = PortalSettings.HomeDirectory & "portal.css" 'portal stylesheet
     
    >>Does CuteEditor know which skin.css to load?
     
    Yes.
     
    Check the following code please:
     
    s2 = PortalSettings.ActiveTab.SkinPath & "skin.css" 'skin css
    s3 = (PortalSettings.ActiveTab.SkinSrc).Substring(0, PortalSettings.ActiveTab.SkinSrc.LastIndexOf("/")) & "/skin.css"
     
    >>What do you mean by "ActiveTab skin.css"?
     
    I mean the third style sheet file above (s3).
     
     
     
     
     
     
     

    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