Ticket #2519: 2519.patch

File 2519.patch, 2.0 KB (added by Martin Kou, 16 years ago)
  • _whatsnew.html

     
    6262                        now are shown properly.</li>
    6363                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2496">#2496</a>] Using the Paste
    6464                        dialogs in IE might insert the content at the start of the editor.</li>
     65                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2519">#2519</a>] Fixed race
     66                        condition at registering the FCKeditorAPI object in multiple editor scenarios.</li>
    6567        </ul>
    6668        <p>
    6769                <a href="_whatsnew_history.html">See previous versions history</a></p>
  • editor/_source/fckeditorapi.js

     
    4242                        'window.FCKeditorAPI = {' +
    4343                                'Version : "[Development]",' +
    4444                                'VersionBuild : "[DEV]",' +
    45                                 'Instances : new Object(),' +
     45                                'Instances : window.FCKeditorAPI && window.FCKeditorAPI.Instances || {},' +
    4646
    4747                                'GetInstance : function( name )' +
    4848                                '{' +
     
    6060                                        'this._FCKOriginalSubmit() ;' +
    6161                                '},' +
    6262
    63                                 '_FunctionQueue : {' +
     63                                '_FunctionQueue : window.FCKeditorAPI && window.FCKeditorAPI._FunctionQueue || {' +
    6464                                        'Functions : new Array(),' +
    6565                                        'IsRunning : false,' +
    6666
     
    117117                        }
    118118                        else if ( FCKBrowserInfo.IsSafari )
    119119                        {
    120                                 // oParentWindow.eval in Safari and Gran Paradiso executes in the calling window
    121                                 // environment, instead of the parent one. The following should make it work.
     120                                // oParentWindow.eval in Safari executes in the calling window
     121                                // environment, instead of the parent one. The following should
     122                                // make it work.
    122123                                var oParentDocument = oParentWindow.document ;
    123124                                var eScript = oParentDocument.createElement('script') ;
    124125                                eScript.appendChild( oParentDocument.createTextNode( sScript ) ) ;
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy