Changeset 428

Show
Ignore:
Timestamp:
2007-07-09 13:42:29 (17 months ago)
Author:
martinkou
Message:

Fix for #268 : FCKTools.EncodeToHex() does not work in Internet Explorer.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/editor/_source/internals/fcktools.js

    r427 r428  
    443443        for ( var i = 0 ; i < hexstr.length ; i+=4 ) 
    444444        { 
    445                 var codePoint = symbols[ hexstr[i] ] << 12 ; 
    446                 codePoint |= symbols[ hexstr[ i + 1 ] ] << 8 ; 
    447                 codePoint |= symbols[ hexstr[ i + 2 ] ] << 4 ; 
    448                 codePoint |= symbols[ hexstr[ i + 3 ] ] ; 
     445                var codePoint = symbols[ hexstr.charAt( i ) ] << 12 ; 
     446                codePoint |= symbols[ hexstr.charAt( i + 1 ) ] << 8 ; 
     447                codePoint |= symbols[ hexstr.charAt( i + 2 ) ] << 4 ; 
     448                codePoint |= symbols[ hexstr.charAt( i + 3 ) ] ; 
    449449                output.push( String.fromCharCode( codePoint ) ) ; 
    450450        }