Changeset 1165

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

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

Location:
FCKeditor.Net/trunk
Files:
2 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 
  • FCKeditor.Net/trunk/_whatsnew.html

    r1163 r1165  
    4242        <ul> 
    4343                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1548">#1548</a>] Compatible with <strong>Safari 3.0+</strong> and <strong>Opera 9.50+</strong>.</li> 
    44                 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/79">#79</a>] Introduced the <strong>FCKeditor.IsCompatibleBrowser</strong> static function, to 
    45                         check if the requesting browser is compatible with FCKeditor.</li> 
    4644                <li>Added specific project files for <strong>Visual Studio .NET 2003</strong> and <strong> 
    4745                        Visual Studio 2005</strong>. It's easier now to open the source in your preferred environment. Builds will 
    4846                        end up in the "1.1" (VS2003) and "2.0" (VS2005) folders inside bin/Debug and bin/Release. </li> 
    4947                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/79">#79</a>] The BasePath property now defaults to "/fckeditor/" ("/FCKeditor/" previously).</li> 
     48                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/79">#79</a>] Introduced the <strong>FCKeditor.IsCompatibleBrowser</strong> static function, to 
     49                        check if the requesting browser is compatible with FCKeditor. 
     50                </li> 
     51                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/79">#79</a>] Introduced 
     52                        the <strong>FCKeditor.CreateHtml</strong> function, which returns the HTML needed 
     53                        to create an editor instance in the page.</li> 
    5054        </ul> 
    5155        <p>