Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsFCKeditorFCKeditorSafaring through DotNetNuke I find FCKEditor issuesSafaring through DotNetNuke I find FCKEditor issues
Previous
 
Next
New Post
8/21/2007 10:23 PM
 

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 4:25 AM
 

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 4:30 AM
 

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



Alex Shirley


 
New Post
8/22/2007 6:41 AM
 

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 3:43 PM
 

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.09.02 (03/13/2009)

Learning how to best support the PeerMomentum.com community with DNN. Please contact me if you know of any good stable and skinable social networking/user profile modules.

Thank you all for the great contribution!
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsFCKeditorFCKeditorSafaring through DotNetNuke I find FCKEditor issuesSafaring through DotNetNuke I find FCKEditor issues


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, 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 DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out