Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: FCKEditor Browser Issue

$
0
0
Re: FCKEditor Browser Issue
Web Connection
Re: FCKEditor Browser Issue
May. 10, 2013
05:43 am
3S50C9TU8Show this entire thread in new window
Gratar Image based on email address
From:Harvey Mushman
To:MB
After I create the oEditor object, I call on oEditor.SetHTML( myData ). Since myData was fetched from the server in a callback prior to creating the editor, the server was able to TEXTMERGE() using VFP code so the response is nothing more an text and does not have any script tags embedded.

If you want to replace the script tags in javascript, you are going to have a fair amount of custom coding to do - no fun!

--hm



Harvey - speaknig of ceditor. How do you train it not to disrupt <% and <%=. do you manage that in method code?


After doing a bit of searching, I discovered a documented fix for this problem. The link to the source is:

http://dev.ckeditor.com/changeset/7666

and documents the following original and change code:

var sBrowserVersion = navigator.appVersion.match(/MSIE (.\..)/)[1] ; replaced by var sBrowserVersion = navigator.appVersion.match(/MSIE ([\d.]+)/)[1] ;

After testing, I found the error to have gone away.

--hm



For some reason an application that has worked for about four or five years seems to have developed a problem. Not sure when the problem started since the page with this control is not used a lot by me and no other users have reported an error.

I'm getting an error in fckeditor.js function FCKeditor_IsCompatibleBrowser and because I'm using IE 10, I decided to change the compatibility to 9 and see if the problem went away. It did, so I looked further at the script code and found what looks like an error is in the match statement below.

var sBrowserVersion = navigator.appVersion.match(/MSIE (.\..)/)[1] ;

The error I see talks about "Unable to get property '1' of undefined or null reference". I assume this is because the first value (the major version number) is now two digits "10.0"

Is anybody having this problem or has everyone dropped this control or upgraded to a new version?

Thanks in advance for any suggestions.

--hm




--hm--


Viewing all articles
Browse latest Browse all 10393

Trending Articles