Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

AspDotNetStoreFront
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
OnyakTech
 


  Sponsors  

Meet Our Sponsors

CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
AspDotNetStoreFront - E-Commerce by Design - The Leading ASP.NET shopping cart platform for developers!
Click here to go to dev.live.com for Windows Live developer resources
SteadyRain
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  FCKeditor Provi...  Safaring through DotNetNuke I find FCKEditor issues
Previous Previous
 
Next Next
New Post 8/21/2007 7:23 PM
User is offline Mauricio Márquez
988 posts
dnn.tiendaboliviana.com
7th Ranked






Re: Safaring through DotNetNuke I find FCKEditor issues 

You must include it into the custom/fckconfig.js file


Locopon
Free modules: E-commerce, Complete localization (Portal, page, module settings, skins, etc.), Secure Login, and more
http://dnn.tiendaboliviana.com
 
New Post 8/22/2007 1:25 AM
User is offline John
220 posts
ewds.strath.ac.uk
9th Ranked


Re: Safaring through DotNetNuke I find FCKEditor issues 

Hi okay thanks for the response, I have included the following link in Custom/fckconfig.js at the end of the file to no avail

 

FCKConfig.EnableOpera = true;

Am I missing anything or is the cut down version of FCK included with DNN missing the components for opera compatibility?
I'll try "upgrading" the included version of fck using the package on the fck site and see if that makes any difference.
I'll post anything here if I do.

This is unfortunately and issue for me here as working from within a university the audience use pretty much a wide a berth of modern browsers as is available.


John Nicholson
 
New Post 8/22/2007 1:30 AM
Online now... Alex Shirley
1908 posts
5th Ranked




Re: Safaring through DotNetNuke I find FCKEditor issues 

Ah so can this be enabled by default on the next FCK release, or are there implications?

 
New Post 8/22/2007 3:41 AM
User is offline John
220 posts
ewds.strath.ac.uk
9th Ranked


Re: Safaring through DotNetNuke I find FCKEditor issues 

Okay, after much canning of the source to this module and after attempting to adjust the config files a number of times I have found a way around the problem...

By adjusting CheckBrowserCompatibility within FckEditor.vb I have added a chack for opera above version 9.2 and safari above version 1.2 It's not the most elegant code but it does work. for safari support it is recommended that the nightly build of fck is used. I have include my adjusted function below.

Public Function CheckBrowserCompatibility() As Boolean
Dim oBrowser As System.Web.HttpBrowserCapabilities = Page.Request.Browser
'Internet Explorer 5.5+ for Windows
If Not oBrowser Is Nothing AndAlso (oBrowser.Browser = "IE" And (oBrowser.MajorVersion >= 6 Or (oBrowser.MajorVersion = 5 And oBrowser.MinorVersion >= 0.5)) And oBrowser.Win32) Then
Return True
Else
If Not Me.Page.Request.UserAgent Is Nothing Then
Dim gMatch As Match = Regex.Match(Me.Page.Request.UserAgent, "(?<=Gecko/)\d{8}")
Dim sMatch As Match = Regex.Match(Me.Page.Request.UserAgent, "(?<=AppleWebKit/)\d{3}")
Dim oMatch As Match = Regex.Match(Me.Page.Request.UserAgent, "(?<=Opera/)\d{3}")
If gMatch.Success Then
If IsNumeric(gMatch.Value) Then
Return Integer.Parse(gMatch.Value, CultureInfo.InvariantCulture) >= 20030210
Else
Return False
End If
ElseIf sMatch.Success Then
If IsNumeric(gMatch.Value) Then
Return Integer.Parse(gMatch.Value, CultureInfo.InvariantCulture) >= 125
Else
Return False
End If
ElseIf oMatch.Success Then
If IsNumeric(gMatch.Value) Then
Return Integer.Parse(gMatch.Value, CultureInfo.InvariantCulture) >= 9.2
Else
Return False
End If
Else
Return False
End If
End If
End If
End Function

 I hope this is of use to some one... I believe you still need to include

FCKConfig.EnableOpera = true;
FCKConfig.EnableSafari = true;

within Fck/Custom/fckconfig.js


John Nicholson
 
New Post 4/1/2008 12:43 PM
User is offline Fabrice
44 posts
http:\\www.byyoursite.com
10th Ranked


Re: Safaring through DotNetNuke I find FCKEditor issues 

Thank you John,

Your information sent me on the right track to resolve the problem... Now I need to set an VS environement (I have moved on to 2008) and all to recompile the project...

Question: Is it you intention to test always against "gMatch"?

Here is a sample of your code:

ElseIf sMatch.Success Then
If IsNumeric(gMatch.Value) Then
Return Integer.Parse(gMatch.Value, CultureInfo.InvariantCulture) >= 125
Else
Return False
End If

Shouldn't it read:

Return Integer.Parse(sMatch.Value, CultureInfo.InvariantCulture) >= 125

Also I couldn't find the "FckEditor.vb" file, but I found the browser test in "Components\FckEditorControl.vb" of the source package.

FYI, as part of the FCKEditor 2.6rc archive that you download from the the FCKEditor site, there is an ASP integration file that does the browser check: I am pasting the relevent section it here for reference:


' A function that can be used to check if the current browser is compatible with FCKeditor
' without the need to create an instance of the class.
Function FCKeditor_IsCompatibleBrowser()


    Dim sAgent
    sAgent = Request.ServerVariables("HTTP_USER_AGENT")

    Dim iVersion
    Dim re, Matches

    If InStr(sAgent, "MSIE") > 0 AND InStr(sAgent, "mac") <= 0  AND InStr(sAgent, "Opera") <= 0 Then
        iVersion = CInt( FCKeditor_ToNumericformat( Mid(sAgent, InStr(sAgent, "MSIE") + 5, 3) ) )
        FCKeditor_IsCompatibleBrowser = ( iVersion >= 5.5 )
    ElseIf InStr(sAgent, "Gecko/") > 0 Then
        iVersion = CLng( Mid( sAgent, InStr( sAgent, "Gecko/" ) + 6, 8 ) )
        FCKeditor_IsCompatibleBrowser = ( iVersion >= 20030210 )
    ElseIf InStr(sAgent, "Opera/") > 0 Then
        iVersion = CSng( FCKeditor_ToNumericformat( Mid( sAgent, InStr( sAgent, "Opera/" ) + 6, 4 ) ) )
        FCKeditor_IsCompatibleBrowser = ( iVersion >= 9.5 )
    ElseIf InStr(sAgent, "AppleWebKit/") > 0 Then
        Set re = new RegExp
        re.IgnoreCase = true
        re.global = false
        re.Pattern = "AppleWebKit/(\d+)"
        Set Matches = re.Execute(sAgent)
        FCKeditor_IsCompatibleBrowser = ( re.Replace(Matches.Item(0).Value, "$1") >= 522 )
    Else
        FCKeditor_IsCompatibleBrowser = False
    End If

End Function


' By Agrotic
' On ASP, when converting string to numbers, the number decimal separator is localized
' so 5.5 will not work on systems were the separator is "," and vice versa.
Private Function FCKeditor_ToNumericformat( numberStr )

    If IsNumeric( "5.5" ) Then
        FCKeditor_ToNumericformat = Replace( numberStr, ",", ".")
    Else
        FCKeditor_ToNumericformat = Replace( numberStr, ".", ",")
    End If

End Function

 

 

 


Vesrion 4.08.02 (5/20/2008)

Learning how to best support the PeerMomentum.com community with DNN.

Thank you all for the great contribution!
 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  FCKeditor Provi...  Safaring through DotNetNuke I find FCKEditor issues
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


DNN SEO
Seablick Consulting specializes in DNN search engine optimization (SEO), DNN consulting, as well as support & training.
seablick.com
Intura Vision / Intura Enterprise
Point-of-Sale and business management applications targeted towards quick service, fast casual and delivery-based restaurant concepts.
www.intura.com
Dnaxp.Net
Dnaxp.Net offers a comprehensive base of information, resources, and support for DotNetNuke.
www.dnaxp.net

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP