I have the sample asp.net code working on my server but now I want to integrate CKFinder with an FCKEditor control which is in a detailsView. My declrative code is
Now, presumably I need to hook CKFinder into this FCKeditor at some point in the lifecycle of thepage, so I have tried this:
It doesn't error but it doesn't work either. Has anyone else done this sucessfully?
Huw
<asp:detailsview id="detailsView" DefaultMode="edit" autogenerateEditButton="true" dataKeyNames="ArticleID" dataSourceID="SqlDataSource2" runat="server" autoGenerateRows="False" >
<fields>
...
<asp:templateField headerText="Summary:" >
<itemTemplate>
<%# eval("Summary") %>
</itemTemplate>
<EditItemTemplate>
<FCKeditorV2:FCKeditor ToolbarSet="Ice" height="200px" width="97%" id="summary" BasePath="~/FCKeditor/" runat="server" value='<%# bind("Summary")%>' />
</EditItemTemplate>
</asp:templateField>
...
</asp:detailsview>Now, presumably I need to hook CKFinder into this FCKeditor at some point in the lifecycle of thepage, so I have tried this:
sub DetailsView_OnModeChanging(sender as object, e as DetailsViewModeEventArgs) Handles DetailsView.ModeChanging
dim FileBrowser as CKFinder.FileBrowser = new CKFinder.FileBrowser()
FileBrowser.BasePath = "/ckfinder/"
FileBrowser.SetupFCKeditor(detailsview.FindControl("summary").id)
end sub
It doesn't error but it doesn't work either. Has anyone else done this sucessfully?
Huw

Re: [ASP.NET] integrating with FCKEditor in a detailsView
FileBrowser.SetupFCKeditor(detailsview.FindControl("summary"))It sounds strange that you are not having any runtime error. SetupFCKeditor throws an ApplicationException with the message "SetupFCKeditor expects an FCKeditor instance object." if an unexpected parameter is passed. So, please be sure that DetailsView_OnModeChanging is being executed properly.
Frederico Knabben
CKEditor Project Lead and CKSource Owner
--
Follow us on: Twitter | Facebook | Google+ | LinkedIn
Re: [ASP.NET] integrating with FCKEditor in a detailsView
Re: [ASP.NET] integrating with FCKEditor in a detailsView