Ticket #4387: 4387_2.patch

File 4387_2.patch, 2.5 KB (added by Tobiasz Cudnik, 15 years ago)
  • _source/skins/kama/skin.js

     
    8585                        if ( CKEDITOR.env.webkit )
    8686                        {
    8787                                uiColorMenuCss = uiColorMenuCss.split( '}' ).slice( 0, -1 );
    88                                 for ( var i in uiColorMenuCss )
    89                                                 uiColorMenuCss[ i ] = uiColorMenuCss[ i ].split( '{' );
     88                                for ( var i = 0 ; i < uiColorMenuCss.length ; i++ )
     89                                        uiColorMenuCss[ i ] = uiColorMenuCss[ i ].split( '{' );
    9090                        }
    9191
    9292                        function addStylesheet( document )
     
    100100                       
    101101                        function updateStylesheets( styleNodes, styleContent, replace )
    102102                        {
    103                                 for ( var id in styleNodes )
     103                                var r, i, content;
     104                                for ( var id  = 0 ; id < styleNodes.length ; id++ )
    104105                                {
    105106                                        if ( CKEDITOR.env.webkit )
    106107                                        {
    107108                                                // Truncate manually.
    108                                                 for ( var i = 0 ; i < styleNodes[ id ].$.sheet.rules.length ; i++ )
     109                                                for ( i = 0 ; i < styleNodes[ id ].$.sheet.rules.length ; i++ )
    109110                                                        styleNodes[ id ].$.sheet.removeRule( i );
    110111
    111                                                 for ( var i in styleContent )
     112                                                for ( i = 0 ; i < styleContent.length ; i++ )
    112113                                                {
    113                                                         var content = styleContent[ i ][ 1 ];
    114                                                         for ( var r in replace )
     114                                                        content = styleContent[ i ][ 1 ];
     115                                                        for ( r  = 0 ; r < replace.length ; r++ )
    115116                                                                content = content.replace( replace[ r ][ 0 ], replace[ r ][ 1 ] );
    116117
    117118                                                        styleNodes[ id ].$.sheet.addRule( styleContent[ i ][ 0 ], content );
     
    119120                                        }
    120121                                        else
    121122                                        {
    122                                                 var content = styleContent;
    123                                                 for ( var r in replace )
     123                                                content = styleContent;
     124                                                for ( r  = 0 ; r < replace.length ; r++ )
    124125                                                        content = content.replace( replace[ r ][ 0 ], replace[ r ][ 1 ] );
    125126
    126127                                                if ( CKEDITOR.env.ie )
  • CHANGES.html

     
    6464                <li><a href="http://dev.fckeditor.net/ticket/3568">#3568</a> : Dialogs now select all text when tabbing to text inputs.</li>
    6565                <li><a href="http://dev.fckeditor.net/ticket/3727">#3727</a> : Cell Properties dialog was missing color selection option.</li>
    6666                <li><a href="http://dev.fckeditor.net/ticket/3517">#3517</a> : Fixed "Match cyclic" field in Find & Replace dialog.</li>
     67                <li><a href="http://dev.fckeditor.net/ticket/4387">#4387</a> : Right clicking in Kama skin can lead to a javascript error.</li>
    6768        </ul>
    6869        <h3>
    6970                CKEditor 3.0</h3>
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy