Hi
I just downloaded the CuteEditor and I'm testing it and it looks very promising.
I'm trying to render the control on my website instead of using the regular tag. The code I have is this.
Editor e = new Editor();
e.Text = "abc";
StringBuilder sb = new StringBuilder();
StringWriter sw = new StringWriter(sb);;
HtmlTextWriter htw = new HtmlTextWriter(sw);;
e.RenderControl(htw);
Response.Write(sb.ToString());
And the error it throws is this
[NullReferenceException: Object reference not set to an instance of an object.]
CuteEditor.a.d(HtmlTextWriter A_0) +1247
CuteEditor.a.f(HtmlTextWriter A_0) +505
CuteEditor.a.g(HtmlTextWriter A_0) +109
CuteEditor.a.i(HtmlTextWriter A_0) +57
CuteEditor.Editor.Render(HtmlTextWriter writer) +43
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243
ASP.temp_aspx.__Render__control1(HtmlTextWriter __output, Control parameterContainer) in C:\Projects\trunk\AppServer\web\barn\create\temp.aspx:19
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +27
System.Web.UI.Control.Render(HtmlTextWriter writer) +7
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243
System.Web.UI.Page.ProcessRequestMain() +1926
I think I'm doing everything right, but please correct me if I'm wrong.
Thanks
ingig