Hi rsj,
Open solution "Provider.sln", it contains in the integrate package(nukeedit5.zip\Providers\HtmlEditorProviders\CEHtmlEditorProvider)
Find section below
-
Protected Sub cntlCE_Load(ByVal sender As Object, ByVal e As EventArgs) Handles cntlCE.Load
-
Try
-
AddDNNLinks()
-
Catch ex As Exception
-
Throw New Exception("Check your provider configuration for errors!" & Environment.NewLine & ex.Message)
-
End Try
-
End Sub
Change to
-
Protected Sub cntlCE_Load(ByVal sender As Object, ByVal e As EventArgs) Handles cntlCE.Load
-
Try
-
AddDNNLinks()
-
If PortalSettings.PortalId = 0 Then
-
-
cntlCE.SetSecurityImageGalleryPath("~/folder1")
-
Else
-
-
cntlCE.SetSecurityImageGalleryPath("~/folder2")
-
End If
-
Catch ex As Exception
-
Throw New Exception("Check your provider configuration for errors!" & Environment.NewLine & ex.Message)
-
End Try
-
End Sub
Build the solution and replace bin/DotNetNuke.CEHtmlEditorProvider.dll of your dnn site
Note: It just an example to show you how to change the ImageGalleryPath by PortalID, you can use your own logic.
Regards,
Ken