Ticket #3706: 3706.patch
File 3706.patch, 5.5 KB (added by , 15 years ago) |
---|
-
_source/plugins/panel/plugin.js
141 141 if ( CKEDITOR.env.isCustomDomain() ) 142 142 doc.$.domain = document.domain; 143 143 144 var cke_hc = /cke_hc/.test( CKEDITOR.env.cssClass ); 145 144 146 doc.$.write( 145 147 '<!DOCTYPE html>' + 146 148 '<html dir="' + dir + '" class="' + className + '_container" lang="' + langCode + '">' + 147 149 '<head>' + 148 150 '<style>.' + className + '_container{visibility:hidden}</style>' + 149 151 '</head>' + 150 '<body class="cke_' + dir + ' cke_panel_frame " style="margin:0;padding:0">' +152 '<body class="cke_' + dir + ' cke_panel_frame ' + ( cke_hc ? 'cke_hc' : '' ) + '" style="margin:0;padding:0">' + 151 153 '</body>' + 152 154 // It looks strange, but for FF2, the styles must go 153 155 // after <body>, so it (body) becames immediatelly -
_source/skins/kama/presets.css
1 /*1 /* 2 2 Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved. 3 3 For licensing, see LICENSE.html or http://ckeditor.com/license 4 4 */ … … 47 47 { 48 48 width: 32px; 49 49 } 50 51 .cke_skin_kama .cke_colorblock_hc 52 { 53 width: 34em; 54 } -
_source/skins/kama/panel.css
154 154 { 155 155 width: 10px; 156 156 height: 10px; 157 157 border: #808080 1px solid; 158 158 float: left; 159 159 } 160 160 161 .cke_colorblock table 162 { 163 width: 100%; 164 } 165 166 .cke_hc .cke_colorblock table 167 { 168 width: 33em; 169 } 170 171 /* XXX browser class missing in panels */ 172 .cke_browser_iequirks .cke_hc a table 173 { 174 width: 32em; 175 } 176 177 .cke_hc_color_label 178 { 179 display: none; 180 } 181 182 .cke_hc .cke_hc_color_label 183 { 184 margin-right: 3px; 185 margin-bottom: 3px; 186 display: block; 187 } 188 189 .cke_hc span.cke_colorbox 190 { 191 display: none; 192 } 193 194 .cke_hc a.cke_colorbox 195 { 196 display: block; 197 height: 3em; 198 float: none; 199 padding: 2px; 200 text-align: center; 201 } 202 203 .cke_hc a.cke_colorbox:hover, 204 .cke_hc .cke_colorblock table a.cke_focus 205 { 206 padding: 0; 207 border-width: 3px; 208 } 209 210 .cke_hc a.cke_colorauto 211 { 212 padding: 2px; 213 } 214 .cke_hc a.cke_colorauto:hover, 215 .cke_hc .cke_colorauto table a.cke_focus 216 { 217 padding: 0; 218 border-width: 3px; 219 } 220 221 .cke_hc .cke_colorblock 222 { 223 overflow: auto; 224 width: 36em; 225 } 226 161 227 .cke_rtl span.cke_colorbox 162 228 { 163 229 float: right; -
_source/plugins/colorbutton/plugin.js
37 37 block.element.addClass( 'cke_colorblock' ); 38 38 block.element.setHtml( renderColors( panel, type ) ); 39 39 40 if ( /cke_hc/.test( CKEDITOR.env.cssClass ) ) 41 panel.element.getChild( 0 ).addClass( 'cke_colorblock_hc' ); 42 40 43 var keys = block.keys; 41 44 keys[ 39 ] = 'next'; // ARROW-RIGHT 42 45 keys[ 9 ] = 'next'; // TAB … … 75 78 style.remove( editor.document ); 76 79 }); 77 80 81 var onFocus = CKEDITOR.tools.addFunction( function(e) 82 { 83 var target = new CKEDITOR.dom.event( e ).getTarget(); 84 target.addClass( 'cke_focus' ); 85 }); 86 87 var onBlur = CKEDITOR.tools.addFunction( function(e) 88 { 89 var target = new CKEDITOR.dom.event( e ).getTarget(); 90 target.removeClass( 'cke_focus' ); 91 }); 92 78 93 // Render the "Automatic" button. 79 94 output.push( 80 95 '<a class="cke_colorauto" _cke_focus=1 hidefocus=true' + 81 96 ' title="', lang.auto, '"' + 82 97 ' onclick="CKEDITOR.tools.callFunction(', clickFn, ',null,\'', type, '\');return false;"' + 98 ' onfocus="CKEDITOR.tools.callFunction(', onFocus, ', event);return false;"' + 99 ' onblur="CKEDITOR.tools.callFunction(', onBlur, ', event);return false;"' + 83 100 ' href="javascript:void(\'', lang.auto, '\')">' + 84 '<table cellspacing=0 cellpadding=0 width="100%">' +101 '<table cellspacing=0 cellpadding=0>' + 85 102 '<tr>' + 86 103 '<td>' + 87 104 '<span class="cke_colorbox" style="background-color:#000"></span>' + … … 92 109 '</tr>' + 93 110 '</table>' + 94 111 '</a>' + 95 '<table cellspacing=0 cellpadding=0 width="100%">' ); 112 '<table cellspacing=0 cellpadding=0>' 113 ); 96 114 97 115 // Render the color boxes. 98 116 for ( var i = 0 ; i < colors.length ; i++ ) … … 107 125 '<a class="cke_colorbox" _cke_focus=1 hidefocus=true' + 108 126 ' title="', colorLabel, '"' + 109 127 ' onclick="CKEDITOR.tools.callFunction(', clickFn, ',\'#', colorCode, '\',\'', type, '\'); return false;"' + 128 ' onfocus="CKEDITOR.tools.callFunction(', onFocus, ', event);return false;"' + 129 ' onblur="CKEDITOR.tools.callFunction(', onBlur, ', event);return false;"' + 110 130 ' href="javascript:void(\'', colorLabel, '\')">' + 111 '<span class="cke_colorbox" style="background-color:#', colorCode, '"></span>' + 131 '<span class="cke_colorbox" style="background-color:#', colorCode, ';"></span>' + 132 '<span class="cke_hc_color_label">' + colorLabel + '</span>' + 112 133 '</a>' + 113 134 '</td>' ); 114 135 }