Hi,
For a few days I'm trying to run a sample of fdkeditor in .net, and finally, yesterday evening, I found it. So I thought it might be interesting to put it on the form, 'cause I've found in my search lot with the same questiong, but none with the right answer.
First of all, it's indeed very simple, but I'm still a student so I don't have experience with larger applications or solutions with multiple projects in it or that kind of stuff...
*Create a new websolutions
*In the root of your website, create a folder named 'FCKeditor' that contains all the files of the editor
*(I have created another file FCKeditorNET with all the NET classes but it's not necessarily)
*IMPORT the .dll -file (FCKeditorNET/bin/Release/FreCK.FCKeditorV2.dll) in your solution.
*Copy the following lines in a WebForm1 from the sample forms
<%@ Register TagPrefix="fckeditorv2" Namespace="FredCK.FCKeditorV2" Assembly="FredCK.FCKeditorV2" %>
<FCKeditorV2:FCKeditor id="FCKeditor1" runat="server" />
It runs great on me and I can easily write the HTML-values away in a XML-file.
Thanks for creating such a great editor
For a few days I'm trying to run a sample of fdkeditor in .net, and finally, yesterday evening, I found it. So I thought it might be interesting to put it on the form, 'cause I've found in my search lot with the same questiong, but none with the right answer.
First of all, it's indeed very simple, but I'm still a student so I don't have experience with larger applications or solutions with multiple projects in it or that kind of stuff...
*Create a new websolutions
*In the root of your website, create a folder named 'FCKeditor' that contains all the files of the editor
*(I have created another file FCKeditorNET with all the NET classes but it's not necessarily)
*IMPORT the .dll -file (FCKeditorNET/bin/Release/FreCK.FCKeditorV2.dll) in your solution.
*Copy the following lines in a WebForm1 from the sample forms
<%@ Register TagPrefix="fckeditorv2" Namespace="FredCK.FCKeditorV2" Assembly="FredCK.FCKeditorV2" %>
<FCKeditorV2:FCKeditor id="FCKeditor1" runat="server" />
It runs great on me and I can easily write the HTML-values away in a XML-file.
Thanks for creating such a great editor
RE: solution .net
RE: solution .net
protected void FormView_ItemCreated(object sender, EventArgs e)
{
Control ctl = FormView.FindControl("fckEditor");
if (ctl != null)
{
FCKeditor fckEdit = ctl as FCKeditor;
fckEdit.BasePath = "FCKeditor/";
}
}
You have to put this before the control is rendered.
Good luck.