Ticket #4387: 4387_2.patch
File 4387_2.patch, 2.5 KB (added by , 14 years ago) |
---|
-
_source/skins/kama/skin.js
85 85 if ( CKEDITOR.env.webkit ) 86 86 { 87 87 uiColorMenuCss = uiColorMenuCss.split( '}' ).slice( 0, -1 ); 88 for ( var i in uiColorMenuCss )89 88 for ( var i = 0 ; i < uiColorMenuCss.length ; i++ ) 89 uiColorMenuCss[ i ] = uiColorMenuCss[ i ].split( '{' ); 90 90 } 91 91 92 92 function addStylesheet( document ) … … 100 100 101 101 function updateStylesheets( styleNodes, styleContent, replace ) 102 102 { 103 for ( var id in styleNodes ) 103 var r, i, content; 104 for ( var id = 0 ; id < styleNodes.length ; id++ ) 104 105 { 105 106 if ( CKEDITOR.env.webkit ) 106 107 { 107 108 // Truncate manually. 108 for ( vari = 0 ; i < styleNodes[ id ].$.sheet.rules.length ; i++ )109 for ( i = 0 ; i < styleNodes[ id ].$.sheet.rules.length ; i++ ) 109 110 styleNodes[ id ].$.sheet.removeRule( i ); 110 111 111 for ( var i in styleContent)112 for ( i = 0 ; i < styleContent.length ; i++ ) 112 113 { 113 varcontent = styleContent[ i ][ 1 ];114 for ( var r in replace)114 content = styleContent[ i ][ 1 ]; 115 for ( r = 0 ; r < replace.length ; r++ ) 115 116 content = content.replace( replace[ r ][ 0 ], replace[ r ][ 1 ] ); 116 117 117 118 styleNodes[ id ].$.sheet.addRule( styleContent[ i ][ 0 ], content ); … … 119 120 } 120 121 else 121 122 { 122 varcontent = styleContent;123 for ( var r in replace)123 content = styleContent; 124 for ( r = 0 ; r < replace.length ; r++ ) 124 125 content = content.replace( replace[ r ][ 0 ], replace[ r ][ 1 ] ); 125 126 126 127 if ( CKEDITOR.env.ie ) -
CHANGES.html
64 64 <li><a href="http://dev.fckeditor.net/ticket/3568">#3568</a> : Dialogs now select all text when tabbing to text inputs.</li> 65 65 <li><a href="http://dev.fckeditor.net/ticket/3727">#3727</a> : Cell Properties dialog was missing color selection option.</li> 66 66 <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> 67 68 </ul> 68 69 <h3> 69 70 CKEditor 3.0</h3>