This project has moved. For the latest updates, please go here.

Telligent_Editor JS Files

Coordinator
Jan 6, 2010 at 1:53 AM

I am getting lots of errors from the Telligent_Editor JS files in IE (works fine from when is uses the _gecho.js files). I was trying to find the issue and noticed the comments say

 * This file has been compressed for better performance. The original source
 * can be found at "editor/_source".
 */

I don't see an "editor/_source" folder though. Is it possible to get these added to the project?

 

Coordinator
Jan 6, 2010 at 1:16 PM

 

Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)
Timestamp: Wed, 6 Jan 2010 14:16:01 UTC
Message: Unspecified error.
Line: 32
Char: 11569
Code: 0
URI: http://localhost:58562/__utility/Telligent_Editor/editor/js/teeditorcode_ie.js

Webpage error details

 

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)

Timestamp: Wed, 6 Jan 2010 14:16:01 UTC

 

 

Message: Unspecified error.

Line: 32

Char: 11569

Code: 0

URI: http://localhost:58562/__utility/Telligent_Editor/editor/js/teeditorcode_ie.js

 

 

Coordinator
Feb 9, 2010 at 11:38 PM
Edited Feb 10, 2010 at 3:25 AM

This editor is simply a slightly modified FCKeditor, and it happens to be an outdated version.

Edit: My original fix actually only helps with the line 28 error seen in IE8, a browser detection problem. 
However this and the line 32 error can apparently be temporarily fixed by forcing IE7 emulation.

Insert this line just after the title tags in AdminMasterPage.master:
<meta http-equiv="X-UA-Compatible" content="IE=7" />

This fix helps with version Graffiti 1.2 only since its already fixed in 1.3:
Replace line 28 with this

var s=navigator.userAgent.toLowerCase();var TEBrowserInfo={IsIE:/*@cc_on!@*/false,IsIE7:/*@cc_on!@*/false&&(parseInt(s.match(/msie (\d+)/)[1],10)>=7),IsIE6:/*@cc_on!@*/false&&(parseInt(s.match(/msie (\d+)/)[1],10)>=6),IsSafari:s.Contains(' applewebkit/'),IsOpera:!!window.opera,IsAIR:s.Contains(' adobeair/'),IsMac:s.Contains('macintosh')};(function(A){A.IsGecko=(navigator.product=='Gecko')&&!A.IsSafari&&!A.IsOpera;A.IsGeckoLike=(A.IsGecko||A.IsSafari||A.IsOpera);if (A.IsGecko){var B=s.match(/rv:(\d+\.\d+)/);var C=B&&parseFloat(B[1]);if (C){A.IsGecko10=(C<1.8);A.IsGecko19=(C>1.8);}}})(TEBrowserInfo);

I pulled this from the most current version of FCKeditor. It seems to resolve all IE7 and IE8 issues but I have not rigorously tested it.

Maybe as a better fix, someone could update the editor with a newer FCK or CKEditor?

Regarding the _source folder, that is included with the FCKeditor if you download the current version at http://ckeditor.com/download.

Coordinator
Feb 10, 2010 at 3:26 AM

Thanks for taking the time to investigate that jkillebrew. I'm sure those fixes will be very useful to those who are using Graffiti 1.0 - 1.2 which has the Telligent-branded FCKeditor.

I've been working on updating Graffiti 1.3 (and trunk) to use the new CKEditor, and am checking in the changes right now. CKEditor is actively developed and should support all modern browsers.