Hello.
In the “Article” module, I would like to have the FCKeditor in the “Summary” field.
As you can see in the image is giving me an error.

I just replace the Text Field for
fckeditorv2:fckeditor id="fckSummary" runat="server" height="150px" width="650px"
What more I must do?
Thank you.
What does the error message say? Without a decent error message we can't guess what's going wrong.
Sorry...
The error is: "Page not found".
If I try to insert an Fckeditor box in any page, always give me this error.
What I must do to insert an Fckeditor area?
Thank you.
I have no idea what's going wrong. Can you find out which page the fckeditor is trying to load?
I tried this out to see what was going on and found that the iframe for the summary area wasn't being set to the proper full URL. If you dig into EditArticle.aspx.cs, you'll see that the first line of the Page_Load function defines the base path for fckContent:
this.fckContent.BasePath = this.Page.ResolveUrl("~/Support/FCKEditor/");
So, you just need to add a similar line for the summary area:
this.fckSummary.BasePath = this.Page.ResolveUrl("~/Support/FCKEditor/");
Thanks Nicole for backing up my lazyness :)
Hello. This problem is solve.
I not only insert this line in
EditArticle.aspx.cs this.fckSummary.BasePath = this.Page.ResolveUrl("~/Support/FCKEditor/");
but I also need to change in
EditArticle.aspx the
BasePath to the full path for FCKeditor.
Now I have one more problem... I'm trying to save the article but the summary field it's always empty????
I already change this lines in
EditArticle.aspx.cs//this.txtSummary.Text = this._article.Summary;
this.fckSummary.Value = this._article.Summary;
and
/*
if (this.txtSummary.Text.Length > 0)
{
this._article.Summary = this.txtSummary.Text;
}
else
{
this._article.Summary = null;
}
*/
this._article.Summary = this.fckSummary.Value;
What more I must change?
Thank you.
this._article.Summary = this.fckSummary.Value
Can you check in the debugger if the fckSummary.Value property is filled?
Hello.
Sorry but I try to find were I can do the debug but I'm new in this :( .
If you can help me there's the link for the source files of
Article module:
http://www.hugopt.com/Articles.rar
Thank you.
I'll have look at it when I have a little bit more time.