Hello people,
I am trying to use FCKeditor in my c#.net application.
I have pasted the code below. the page has a label 'fck demo' and a fckeditor should be displayed below it.
<body> <form id="form1" runat="server"> <div> <strong> Fck Demo </strong> </div> <div> <FCKeditorV2:FCKeditor ID="FCKeditor1" runat="server" BasePath="~/fckeditor/"> </FCKeditorV2:FCKeditor> </div> </form> </body>
Re: Problem integrating FCKeditor with .net
any kind of pointers on how to solve this is greatly appreciated.!!
Thanks
vinodh
Re: Problem integrating FCKeditor with .net
Does the editor recognise the '~' in the basepath? I'm not sure, so I always use a full pathname when I create an FCKEditor in .NET - try with BasePath="/fckeditor/" and see if that works.
Also, I think that the basepath is case sensitive, I have a local source with "/fckeditor/" but on my server it's "/FCKEditor/" and I found that if I copied the source over to the server, it didn't work properly until I changed the case of the basepath.
Re: Problem integrating FCKeditor with .net
The "~/FCKeditor" notation is fine.
Some FTP clients will mess up case-sensitivity so that's definitely something to check.
Also check where you have installed FCKeditor. Did you create your ~/fckeditor and then unzip the package inside that, so it's actually in ~/fckeditor/FCKeditor ? Check that both these files exist: ~/fckeditor/fckconfig.js and ~/fckeditor/editor/fckeditor.html.
Re: Problem integrating FCKeditor with .net
Where do we get it from.
Re: Problem integrating FCKeditor with .net
Re: Problem integrating FCKeditor with .net
Ok RTFM fair point. However I didn't expect to have to download some a beta file with the source to run the non beta code.
Further more on using that download I now get a host of javascript errors.
Error: FCKConfig.CustomConfigurationsPath is undefined
Source File: http://localhost:40674/Admin/editor/fck ... ar=Default
Line: 157
Error: A.PluginsPath is undefined
Source File: http://localhost:40674/Admin/editor/js/ ... e_gecko.js
Line: 33
Error: FCKConfig.ContextMenu is undefined
Source File: http://localhost:40674/Admin/editor/js/ ... e_gecko.js
Line: 105
Error: C is undefined
Source File: http://localhost:40674/Admin/editor/js/ ... e_gecko.js
Line: 99
Which I can only guess is due to me trying to use the Beta scripts with the non beta control.
Re: Problem integrating FCKeditor with .net
Re: Problem integrating FCKeditor with .net
I'm having the exact same problem as the original poster on this page.
http://www.elon.edu/cms4/fckeditor/edit ... ar=Default
Here's what my asp line looks like:
<FCKeditorV2:FCKeditor ID="FCKeditor1" runat="server" BasePath="/cms4/fckeditor/" CustomConfigurationsPath="/cms4/fckeditor/" PluginsPath="/cms4/fckeditor/" />
I get tons of javascript errors when trying to load that page. Adding CustomConfigurationsPath, and PluginsPath fixed some of the javascript errors I was having.
Any help appreciated.
Re: Problem integrating FCKeditor with .net
I was loading the editor into a placeholder. Here is the code that worked for me:
FredCK.FCKeditorV2.FCKeditor f1 = new FredCK.FCKeditorV2.FCKeditor();
f1.BasePath = this.Request.ApplicationPath + "/fckeditor/";
pnl1.Controls.Add(f1);
Re: Problem integrating FCKeditor with .net
Re: Problem integrating FCKeditor with .net
For anyone interested, this is the download for the scripts:
http://sourceforge.net/projects/fckedit ... FCKeditor/
Not that one would ever know that without downloading a bunch of stuff and unzipping and experimenting over and over.
Would it be so hard to put a link on the main download page to the scripts that the page says are necessary?
Re: Problem integrating FCKeditor with .net
Attachments: