Changeset 485

Show
Ignore:
Timestamp:
2007-07-20 11:57:45 (17 months ago)
Author:
fredck
Message:

Simplified the "_CodeTag" generation for ProtectSource (related to #143).

Files:
1 modified

Legend:

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

    r483 r485  
    161161FCKConfig.ProtectedSource = new Object() ; 
    162162 
    163 FCKConfig.ProtectedSource._GenerateCodeTag = function() 
    164 { 
    165         if ( this._CodeTag ) 
    166                 return ; 
    167         var codeTag = [] ; 
    168         for ( var i = 0 ; i < 16 ; i++ ) 
    169                 codeTag.push( String.fromCharCode( 0x41 + parseInt( Math.random() * 26 ) ) ) ; 
    170         this._CodeTag = codeTag.join( "" ) ; 
    171 } 
    172 FCKConfig.ProtectedSource._GenerateCodeTag() ; 
     163// Generates a string used to identify and locate the Protected Tags comments. 
     164FCKConfig.ProtectedSource._CodeTag = (new Date()).valueOf() ; 
    173165 
    174166// Initialize the regex array with the default ones.