The current version of FredCK.FCKeditorV2.dll does not support Safari, even though the editor does. The current DLL will only render a textarea box for Safari because CheckBrowserCompatibility() method excludes Safari and Opera as valid browsers. The CheckBrowserCompatibility() method in FCKEditor.cs needs to updated and a new DLL published. I opened the SLN file myself in VS and published a new DLL that will work with Safari, all it takes is to add a line:
// you can just replace the old method with this one. public bool CheckBrowserCompatibility() { System.Web.HttpBrowserCapabilities oBrowser = Page.Request.Browser ; // Internet Explorer 5.5+ for Windows if (oBrowser.Browser == "IE" && ( oBrowser.MajorVersion >= 6 || ( oBrowser.MajorVersion == 5 && oBrowser.MinorVersion >= 0.5 ) ) && oBrowser.Win32) { return true ; } // Safari - this is the new line to add else if (oBrowser.Browser.Contains("Safari")) { return true; } else { Match oMatch = Regex.Match( this.Page.Request.UserAgent, @"(?<=Gecko/)\d{8}" ) ; return ( oMatch.Success && int.Parse( oMatch.Value, CultureInfo.InvariantCulture ) >= 20030210 ) ; } }
Re: Fixing ASP.NET DLL for Safari Browser
Re: Fixing ASP.NET DLL for Safari Browser
Nevermind, I found out how to do it myself Anyway, do you have any other useful compatibility tweaks? When I test the component in Safari, the <Enter> key doesn't seem to function. Do you experience that as well?
[edit] I probably need 2.5 beta, right? [/edit]
Re: Fixing ASP.NET DLL for Safari Browser
And don't forget to check the version number. Old versions won't work very nice...
Re: Fixing ASP.NET DLL for Safari Browser
-Randy