Hi
I am trying to get CKEditor v3.5.2 and CKFinder v2.0.2 to work together under .NET 4.0
I have added a Reference to both CKEditor.NET.dll and CKFinder.dll and have added a CKEditor control to a webpage using:
I have also added the following to the head section:
Within the Code behind page I have added the follwing code to link both controls
But when I run the code I get the following message:
I am trying to get CKEditor v3.5.2 and CKFinder v2.0.2 to work together under .NET 4.0
I have added a Reference to both CKEditor.NET.dll and CKFinder.dll and have added a CKEditor control to a webpage using:
<CKEditor:CKEditorControl ID="CKEditorControl1" runat="server" ></CKEditor:CKEditorControl>
I have also added the following to the head section:
<script type="text/javascript" src="/ckeditor/ckeditor.js"></script> <script type="text/javascript" src="/ckfinder/ckfinder.js"></script>
Within the Code behind page I have added the follwing code to link both controls
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim q As New CKFinder.FileBrowser q.BasePath = "/ckfinder/" q.SetupFCKeditor(CKEditorControl1)
But when I run the code I get the following message:
Server Error in '/' Application.
--------------------------------------------------------------------------------
SetupFCKeditor expects an FCKeditor instance object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ApplicationException: SetupFCKeditor expects an FCKeditor instance object.
Source Error:
Line 7: Dim q As New CKFinder.FileBrowser
Line 8: q.BasePath = "/ckfinder/"
Line 9: q.SetupFCKeditor(CKEditorControl1) <----- This line is highlighted as the faulting line of code
Line 10:
Line 11:
Source File: C:\Customer Web Sites\...\ChangeSite\EditPage.aspx.vb Line: 9
Stack Trace:
[ApplicationException: SetupFCKeditor expects an FCKeditor instance object.]
CKFinder.FileBrowser.SetupFCKeditor(Object fckeditorInstance) +1503
ChangeSite_EditPage.Page_Load(Object sender, EventArgs e) in C:\Customer Web Sites\cranleighhousehealing\ChangeSite\EditPage.aspx.vb:9
System.Web.UI.Control.OnLoad(EventArgs e) +91
System.Web.UI.Control.LoadRecursive() +74
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
Re: CKEditor v3.5.2 and CKFinder v2.0.2
Apologies for late reply.
The reason of your problem is that CKFinder does not contain yet a method called SetupCKEditor as explaind in this topic: viewtopic.php?f=10&t=21908
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: CKEditor v3.5.2 and CKFinder v2.0.2
The new micro release of CKFinder for ASP.NET (2.0.2.1) has just been released. The SetupCKEditor method is now available.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+