Ticket #3493: 3493_3.patch
File 3493_3.patch, 12.7 KB (added by , 15 years ago) |
---|
-
_source/core/_bootstrap.js
7 7 * @fileOverview API initialization code. 8 8 */ 9 9 10 (function() 11 { 12 // Check is High Contrast is active by creating a temporary element with a 13 // background image. 14 15 var hcDetect = CKEDITOR.dom.element.createFromHtml( 16 '<div style="width:0px;height:0px;' + 17 'position:absolute;left:-10000px;' + 18 'background-image:url(about:blank)"></div>', CKEDITOR.document ); 19 20 hcDetect.appendTo( CKEDITOR.document.getHead() ); 21 22 // Update CKEDITOR.env. 23 if ( CKEDITOR.env.hc = ( hcDetect.getComputedStyle( 'background-image' ) == 'none' ) ) 24 CKEDITOR.env.cssClass += ' cke_hc'; 25 26 hcDetect.remove(); 27 })(); 28 10 29 // Load core plugins. 11 30 CKEDITOR.plugins.load( CKEDITOR.config.corePlugins.split( ',' ), function() 12 31 { -
_source/plugins/colorbutton/plugin.js
21 21 { 22 22 editor.ui.add( name, CKEDITOR.UI_PANELBUTTON, 23 23 { 24 label : lang.label,24 label : title, 25 25 title : title, 26 26 className : 'cke_button_' + name.toLowerCase(), 27 27 -
_source/skins/office2003/dialog.css
418 418 background-position: -20px -655px; 419 419 position: absolute; 420 420 cursor: pointer; 421 text-align: center; 421 422 height: 21px; 422 423 width: 21px; 423 424 top: 4px; … … 426 427 _background-image: url(images/sprites_ie6.png); 427 428 } 428 429 430 .cke_skin_office2003 .cke_dialog_close_button span 431 { 432 display: none; 433 } 434 429 435 .cke_skin_office2003 .cke_ltr .cke_dialog_close_button 430 436 { 431 437 right: 10px; … … 592 598 { 593 599 color: #a0a0a0; 594 600 } 601 602 /* High Contrast Mode */ 603 .cke_skin_office2003 .cke_hc .cke_dialog_title, 604 .cke_skin_office2003 .cke_hc .cke_dialog_tabs, 605 .cke_skin_office2003 .cke_hc .cke_dialog_contents, 606 .cke_skin_office2003 .cke_hc .cke_dialog_footer 607 { 608 border-left: 1px solid; 609 border-right: 1px solid; 610 } 611 612 .cke_skin_office2003 .cke_hc .cke_dialog_title 613 { 614 border-top: 1px solid; 615 } 616 617 .cke_skin_office2003 .cke_hc .cke_dialog_footer 618 { 619 border-bottom: 1px solid; 620 } 621 622 .cke_skin_office2003 .cke_hc .cke_dialog_close_button span 623 { 624 display: inline; 625 cursor: pointer; 626 cursor: hand; 627 font-weight: bold; 628 position: relative; 629 top: 3px; 630 } -
_source/skins/office2003/richcombo.css
23 23 opacity: 0.70; /* Safari, Opera and Mozilla */ 24 24 } 25 25 26 .cke_skin_office2003 .cke_hc .cke_rcombo a 27 { 28 filter: alpha(opacity=100); /* IE */ 29 opacity: 1.0; /* Safari, Opera and Mozilla */ 30 } 31 26 32 .cke_skin_office2003 .cke_rcombo .cke_label 27 33 { 28 34 display: inline-block; … … 38 44 _background-repeat: repeat-x; 39 45 } 40 46 47 .cke_skin_office2003 .cke_hc .cke_rcombo .cke_label 48 { 49 filter: alpha(opacity=100); 50 opacity: 1.0; 51 } 52 41 53 .cke_skin_office2003 .cke_rtl .cke_rcombo .cke_label 42 54 { 43 55 padding-right: 4px; … … 171 183 opacity: 0.3; /* Safari, Opera and Mozilla */ 172 184 } 173 185 186 .cke_skin_office2003 .cke_hc .cke_rcombo .cke_disabled .cke_label 187 { 188 filter: alpha(opacity=70); 189 opacity: 0.7; 190 } 191 174 192 .cke_skin_office2003 .cke_rcombo .cke_disabled .cke_text, 175 193 .cke_skin_office2003 .cke_rcombo .cke_disabled .cke_openbutton 176 194 { … … 178 196 opacity: 0.5; /* Safari, Opera and Mozilla */ 179 197 } 180 198 199 .cke_skin_office2003 .cke_hc .cke_rcombo .cke_disabled .cke_text, 200 .cke_skin_office2003 .cke_hc .cke_rcombo .cke_disabled .cke_openbutton 201 { 202 filter: alpha(opacity=80); 203 opacity: 0.8; 204 } 205 181 206 .cke_skin_office2003 .cke_rcombo .cke_disabled .cke_text 182 207 { 183 208 color: #fff; -
_source/skins/office2003/toolbar.css
134 134 _margin: 3px 1px 1px 1px; 135 135 } 136 136 137 .cke_skin_office2003 .cke_hc .cke_button a, 138 .cke_skin_office2003 .cke_hc .cke_button a.cke_off 139 { 140 opacity: 1.0; 141 filter: alpha(opacity=100); 142 } 143 137 144 .cke_skin_office2003 .cke_button a.cke_on 138 145 { 139 146 border: solid 1px #316ac5; … … 144 151 _margin: 2px 0 0 0; 145 152 } 146 153 154 .cke_skin_office2003 .cke_hc .cke_button a.cke_on 155 { 156 padding: 0 2px !important; 157 border-width: 3px; 158 } 159 147 160 .cke_skin_office2003 .cke_button a.cke_disabled, 148 161 .cke_skin_office2003 .cke_button a:hover.cke_disabled, 149 162 .cke_skin_office2003 .cke_button a:focus.cke_disabled, … … 158 171 _margin: 3px 1px 1px 1px; 159 172 } 160 173 174 .cke_skin_office2003 .cke_hc .cke_button a.cke_disabled, 175 .cke_skin_office2003 .cke_browser_ie.cke_hc a:hover.cke_button .cke_disabled 176 { 177 filter: alpha(opacity=60); 178 opacity: 0.6; 179 } 180 161 181 .cke_skin_office2003 .cke_button a:hover.cke_on, 162 182 .cke_skin_office2003 .cke_button a:focus.cke_on, 163 183 .cke_skin_office2003 .cke_button a:active.cke_on, /* IE */ … … 172 192 vertical-align: top; 173 193 174 194 _margin: 2px 0 0 0; 195 padding: 2px 4px; 175 196 } 176 197 198 .cke_skin_office2003 .cke_hc .cke_button a:hover.cke_on, 199 .cke_skin_office2003 .cke_hc .cke_button a:focus.cke_on, 200 .cke_skin_office2003 .cke_hc .cke_button a:active.cke_on, /* IE */ 201 .cke_skin_office2003 .cke_hc .cke_button a:hover.cke_off, 202 .cke_skin_office2003 .cke_hc .cke_button a:focus.cke_off, 203 .cke_skin_office2003 .cke_hc .cke_button a:active.cke_off /* IE */ 204 { 205 padding: 0 2px !important; 206 border-width: 3px; 207 } 208 177 209 .cke_skin_office2003 .cke_button .cke_icon 178 210 { 179 211 background-image: url(icons.png); … … 208 240 _background-image: none; 209 241 } 210 242 243 .cke_skin_office2003 .cke_hc .cke_button .cke_label 244 { 245 display: inline-block; 246 } 247 248 .cke_skin_office2003 .cke_hc .cke_button .cke_icon 249 { 250 display: none; 251 } 252 253 .cke_skin_office2003 .cke_accessibility 254 { 255 position: absolute; 256 top: -1000000px; 257 } 258 211 259 .cke_skin_office2003 .cke_button .cke_buttonarrow 212 260 { 213 261 display: inline-block; … … 287 335 float: left; 288 336 } 289 337 338 .cke_skin_office2003 .cke_browser_gecko.cke_hc .cke_button .cke_icon 339 { 340 display: none; 341 } 342 290 343 .cke_skin_office2003 .cke_rtl.cke_browser_gecko .cke_toolbar, 291 344 .cke_skin_office2003 .cke_rtl.cke_browser_gecko .cke_button a, 292 345 .cke_skin_office2003 .cke_rtl.cke_browser_gecko .cke_button a.cke_off, -
_source/skins/v2/dialog.css
412 412 background-position: -16px -651px; 413 413 position: absolute; 414 414 cursor: pointer; 415 text-align: center; 415 416 height: 20px; 416 417 width: 20px; 417 418 top: 5px; … … 420 421 _background-image: url(images/sprites_ie6.png); 421 422 } 422 423 424 .cke_skin_v2 .cke_dialog_close_button span 425 { 426 display: none; 427 } 428 423 429 .cke_skin_v2 .cke_dialog_close_button:hover 424 430 { 425 431 background-position: -16px -687px; … … 591 597 { 592 598 color: #a0a0a0; 593 599 } 600 601 /* High Contrast Mode */ 602 .cke_skin_v2 .cke_hc .cke_dialog_title, 603 .cke_skin_v2 .cke_hc .cke_dialog_tabs, 604 .cke_skin_v2 .cke_hc .cke_dialog_contents, 605 .cke_skin_v2 .cke_hc .cke_dialog_footer 606 { 607 border-left: 1px solid; 608 border-right: 1px solid; 609 } 610 611 .cke_skin_v2 .cke_hc .cke_dialog_title 612 { 613 border-top: 1px solid; 614 } 615 616 .cke_skin_v2 .cke_hc .cke_dialog_footer 617 { 618 border-bottom: 1px solid; 619 } 620 621 .cke_skin_v2 .cke_hc .cke_dialog_close_button span 622 { 623 display: inline; 624 cursor: pointer; 625 cursor: hand; 626 font-weight: bold; 627 position: relative; 628 top: 3px; 629 } -
_source/skins/v2/richcombo.css
21 21 opacity: 0.70; /* Safari, Opera and Mozilla */ 22 22 } 23 23 24 .cke_skin_v2 .cke_hc .cke_rcombo a 25 { 26 filter: alpha(opacity=100); /* IE */ 27 opacity: 1.0; /* Safari, Opera and Mozilla */ 28 } 29 24 30 .cke_skin_v2 .cke_rcombo .cke_label 25 31 { 26 32 display: inline-block; … … 33 39 background-color: #f1f1e3; /* Because of IE6+ClearType */ 34 40 } 35 41 42 .cke_skin_v2 .cke_hc .cke_rcombo .cke_label 43 { 44 filter: alpha(opacity=100); 45 opacity: 1.0; 46 } 47 36 48 .cke_skin_v2 .cke_rtl .cke_rcombo .cke_label 37 49 { 38 50 padding-right: 4px; … … 166 178 opacity: 0.3; /* Safari, Opera and Mozilla */ 167 179 } 168 180 181 .cke_skin_v2 .cke_hc .cke_rcombo .cke_disabled .cke_label 182 { 183 filter: alpha(opacity=70); 184 opacity: 0.7; 185 } 186 169 187 .cke_skin_v2 .cke_rcombo .cke_disabled .cke_text, 170 188 .cke_skin_v2 .cke_rcombo .cke_disabled .cke_openbutton 171 189 { … … 173 191 opacity: 0.5; /* Safari, Opera and Mozilla */ 174 192 } 175 193 194 .cke_skin_v2 .cke_hc .cke_rcombo .cke_disabled .cke_text, 195 .cke_skin_v2 .cke_hc .cke_rcombo .cke_disabled .cke_openbutton 196 { 197 filter: alpha(opacity=80); 198 opacity: 0.8; 199 } 200 176 201 .cke_skin_v2 .cke_rcombo .cke_disabled .cke_text 177 202 { 178 203 color: #fff; -
_source/skins/v2/toolbar.css
110 110 height: 18px; 111 111 } 112 112 113 .cke_skin_v2 .cke_hc .cke_button a, 114 .cke_skin_v2 .cke_hc .cke_button a.cke_off 115 { 116 opacity: 1.0; 117 filter: alpha(opacity=100); 118 } 119 113 120 .cke_skin_v2 .cke_button a.cke_on 114 121 { 115 122 border: solid 1px #316ac5; 116 123 background-color: #a3d7ff; 117 124 filter: alpha(opacity=100); /* IE */ 118 125 opacity: 1; /* Safari, Opera and Mozilla */ 126 padding: 2px 4px; 119 127 } 120 128 129 .cke_skin_v2 .cke_hc .cke_button a.cke_on 130 { 131 padding: 0 2px !important; 132 border-width: 3px; 133 } 134 121 135 .cke_skin_v2 .cke_button a.cke_disabled, 122 136 .cke_skin_v2 .cke_browser_ie a:hover.cke_button .cke_disabled 123 137 { … … 127 141 opacity : 0.3; /* Safari, Opera and Mozilla */ 128 142 } 129 143 144 .cke_skin_v2 .cke_hc .cke_button a.cke_disabled, 145 .cke_skin_v2 .cke_browser_ie.cke_hc a:hover.cke_button .cke_disabled 146 { 147 filter: alpha(opacity=60); 148 opacity: 0.6; 149 } 150 130 151 .cke_skin_v2 .cke_button a:hover.cke_on, 131 152 .cke_skin_v2 .cke_button a:focus.cke_on, 132 153 .cke_skin_v2 .cke_button a:active.cke_on, /* IE */ … … 138 159 background-color: #dff1ff; 139 160 filter: alpha(opacity=100); /* IE */ 140 161 opacity: 1; /* Safari, Opera and Mozilla */ 162 padding: 2px 4px; 141 163 } 142 164 165 .cke_skin_v2 .cke_hc .cke_button a:hover.cke_on, 166 .cke_skin_v2 .cke_hc .cke_button a:focus.cke_on, 167 .cke_skin_v2 .cke_hc .cke_button a:active.cke_on, /* IE */ 168 .cke_skin_v2 .cke_hc .cke_button a:hover.cke_off, 169 .cke_skin_v2 .cke_hc .cke_button a:focus.cke_off, 170 .cke_skin_v2 .cke_hc .cke_button a:active.cke_off /* IE */ 171 { 172 padding: 0 2px !important; 173 border-width: 3px; 174 } 175 143 176 .cke_skin_v2 .cke_button .cke_icon 144 177 { 145 178 background-image: url(icons.png); … … 158 191 vertical-align: 3px; 159 192 } 160 193 194 .cke_skin_v2 .cke_hc .cke_button .cke_label 195 { 196 display: inline-block; 197 } 198 199 .cke_skin_v2 .cke_hc .cke_button .cke_icon 200 { 201 display: none; 202 } 203 161 204 .cke_skin_v2 .cke_accessibility 162 205 { 163 206 position: absolute; … … 242 285 float: left; 243 286 } 244 287 288 .cke_skin_v2 .cke_browser_gecko.cke_hc .cke_button .cke_icon 289 { 290 display: none; 291 } 292 245 293 .cke_skin_v2 .cke_rtl.cke_browser_gecko .cke_toolbar, 246 294 .cke_skin_v2 .cke_rtl.cke_browser_gecko .cke_button a, 247 295 .cke_skin_v2 .cke_rtl.cke_browser_gecko .cke_button a.cke_off, -
_source/themes/default/theme.js
99 99 ' cke_', editor.lang.dir, '" style="position:absolute">' + 100 100 '<div class="%body">' + 101 101 '<div id="%title#" class="%title"></div>' + 102 '<div id="%close_button#" class="%close_button"></div>' + 102 '<div id="%close_button#" class="%close_button">' + 103 '<span>X</span>' + 104 '</div>' + 103 105 '<div id="%tabs#" class="%tabs"></div>' + 104 106 '<div id="%contents#" class="%contents"></div>' + 105 107 '<div id="%footer#" class="%footer"></div>' + … … 124 126 125 127 var body = element.getChild( [ 0, 0 ] ); 126 128 127 // Make the Title unselectable.129 // Make the Title and Close Button unselectable. 128 130 body.getChild( 0 ).unselectable(); 131 body.getChild( 1 ).unselectable(); 129 132 130 133 131 134 return {