Re: DNN Provider - Root Image Directory

  •  02-01-2005, 6:57 PM

    Re: DNN Provider - Root Image Directory

    DNN 3.09

    There were two provider files in the download:
    \DotNetNuke_3.0\Providers\CEHtmlEditorProvider.vb
    \DotNetNuke_3.0\Providers\HtmlEditorProviders\CEHtmlEditorProvider\CEHtmlEditorProvider.vb

    The former seemed incomplete, so I used the latter, which was in the correct location anyway.

    It contained the following for the initialise event:

     Public Overrides Sub Initialize()

                cntlCE = New CuteEditor.Editor

                Dim s1, s2, s3, s4 As String

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

                'initialize the control
                cntlCE.EditorWysiwygModeCss = s1 & "," & s2 & "," & s3 & ", " & s4
                cntlCE.FilesPath = DotNetNuke.Common.Globals.ResolveUrl("~/Providers/HtmlEditorProviders/CEHtmlEditorProvider/CuteSoft_Client/CuteEditor/")
                cntlCE.SetSecurityImageGallaryPath(RootImageDirectory)
                cntlCE.SetSecurityFilesGallaryPath(RootImageDirectory)
                cntlCE.SetSecurityMediaGalleryPath(RootImageDirectory)
                cntlCE.SetSecurityFlashGalleryPath(RootImageDirectory)
                cntlCE.DisableClassList = "ControlPanel,FileManager,FileManager_Header,Wizard,WizardBody,WizardHelpText,ModuleTitle_MenuArrow,ModuleTitle_RootMenuArrow,MainMenu_MenuArrow,MainMenu_RootMenuArrow,WizardHelp"
                'disable the save button
                cntlCE.DisableItemList = "Save"

            End Sub



    Cheers,
    A

    PS - What button do you use to get your code in the textbox?
View Complete Thread