Show
Ignore:
Timestamp:
2007-12-01 18:38:36 (9 months ago)
Author:
fredck
Message:

For #79 : Introduced the FCKeditor.CreateHtml function, which returns the HTML needed to create an editor instance in the page.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor.Net/trunk/FCKeditor.cs

    r1162 r1165  
    321321                #region Rendering 
    322322 
     323                public string CreateHtml() 
     324                { 
     325                        System.IO.StringWriter strWriter = new System.IO.StringWriter() ; 
     326                        System.Web.UI.HtmlTextWriter writer = new HtmlTextWriter( strWriter ); 
     327                        this.Render( writer ); 
     328                        return strWriter.ToString(); 
     329                } 
     330 
    323331                protected override void Render(HtmlTextWriter writer) 
    324332                { 
     
    332340 
    333341                                string sFile =  
    334                                         Page.Request.QueryString["fcksource"] == "true" ?  
     342                                        System.Web.HttpContext.Current.Request.QueryString["fcksource"] == "true" ?  
    335343                                                "fckeditor.original.html" :  
    336344                                                "fckeditor.html" ; 
     
    379387                public bool CheckBrowserCompatibility() 
    380388                { 
    381                         return IsCompatibleBrowser( Page.Request ); 
     389                        return IsCompatibleBrowser(); 
    382390                } 
    383391