Ticket #6200: 6200_2.patch

File 6200_2.patch, 9.0 KB (added by Sa'ar Zac Elias, 13 years ago)
  • _source/plugins/dialog/plugin.js

     
    23382338                                                                        dialog._.hasFocus = true;
    23392339                                                                        me.fire( 'focus' );
    23402340                                                                }, me );
     2341                                                        me.getInputElement().on( 'blur', function()
     2342                                                                {
     2343                                                                        me.fire( 'blur' );
     2344                                                                }, me );
    23412345                                                }
    23422346                                        } );
    23432347
  • _source/plugins/dialogui/plugin.js

     
    384384                                                myDefinition.style = myDefinition.controlStyle;
    385385
    386386                                        _.checkbox = new CKEDITOR.ui.dialog.uiElement( dialog, myDefinition, html, 'input', null, attributes );
     387
     388                                        // IE < 8 don't show the "focus outline" for certain elements (#6200).
     389                                        if ( CKEDITOR.env.ie && CKEDITOR.env.version < 8 )
     390                                        {
     391                                                _.checkbox.on( 'focus', function()
     392                                                {
     393                                                        this.getInputElement().addClass( 'cke_dialog_ui_selected' );
     394                                                });
     395                                                _.checkbox.on( 'blur', function()
     396                                                {
     397                                                        this.getInputElement().removeClass( 'cke_dialog_ui_selected' );
     398                                                });
     399                                        }
     400
    387401                                        html.push( ' <label id="', labelId, '" for="', attributes.id, '">',
    388402                                                        CKEDITOR.tools.htmlEncode( elementDefinition.label ),
    389403                                                        '</label>' );
     
    12131227                                        }
    12141228                                },
    12151229
    1216                                 keyboardFocusable : true
     1230                                keyboardFocusable : 1
    12171231                        }, commonPrototype, true );
    12181232
    12191233        CKEDITOR.ui.dialog.radio.prototype = CKEDITOR.tools.extend( new CKEDITOR.ui.dialog.uiElement,
  • _source/plugins/image/dialogs/image.js

     
    757757                                                                                                                                {
    758758                                                                                                                                        this.removeClass( 'cke_btn_over' );
    759759                                                                                                                                }, resetButton );
     760
     761
     762                                                                                                                        // IE < 8 don't show the "focus outline" for certain elements (#6200).
     763                                                                                                                        if ( CKEDITOR.env.ie && CKEDITOR.env.version < 8 )
     764                                                                                                                        {
     765                                                                                                                                resetButton.on( 'focus', function(){ this.addClass( 'cke_dialog_ui_selected' ); }, resetButton );
     766                                                                                                                                resetButton.on( 'blur', function(){ this.removeClass( 'cke_dialog_ui_selected' ); }, resetButton );
     767                                                                                                                        }
    760768                                                                                                                }
    761769                                                                                                                // Activate (Un)LockRatio button
    762770                                                                                                                if ( ratioButton )
     
    786794                                                                                                                                {
    787795                                                                                                                                        this.removeClass( 'cke_btn_over' );
    788796                                                                                                                                }, ratioButton );
     797
     798                                                                                                                        // IE < 8 don't show the "focus outline" for certain elements (#6200).
     799                                                                                                                        if ( CKEDITOR.env.ie && CKEDITOR.env.version < 8 )
     800                                                                                                                        {
     801                                                                                                                                ratioButton.on( 'focus', function(){ this.addClass( 'cke_dialog_ui_selected' ); }, ratioButton );
     802                                                                                                                                ratioButton.on( 'blur', function(){ this.removeClass( 'cke_dialog_ui_selected' ); }, ratioButton );
     803                                                                                                                        }
    789804                                                                                                                }
    790805                                                                                                        },
    791806                                                                                                        html : '<div>'+
  • _source/skins/kama/dialog.css

     
    277277        padding-right: 2px !important;
    278278}
    279279
    280 .cke_skin_kama .cke_browser_ie.cke_rtl div.cke_dialog_ui_input_text {
     280.cke_skin_kama .cke_browser_ie.cke_rtl div.cke_dialog_ui_input_text
     281{
    281282        padding-right: 1px;
    282283}
    283284
     
    315316        padding: 1px 0px;
    316317}
    317318
     319/* #6200: Some browsers doesn't show the "focus outline" for certain elements */
     320.cke_skin_kama .cke_browser_ie .cke_dialog_ui_checkbox_input
     321{
     322        border: 1px solid transparent;
     323}
     324.cke_skin_kama .cke_browser_ie .cke_dialog_ui_selected
     325{
     326        border: 1px dotted #696969 !important;
     327}
     328.cke_skin_kama .cke_browser_gecko .cke_dialog_ui_checkbox_input:focus,
     329.cke_skin_kama .cke_browser_gecko .cke_dialog_ui_input_select:focus
     330{
     331        outline: 1px dotted #696969;
     332}
     333
    318334.cke_skin_kama div.cke_disabled .cke_dialog_ui_labeled_content *
    319335{
    320336        background-color : #a0a0a0;
     
    691707        width: 16px;
    692708        height: 16px;
    693709        background-repeat: no-repeat;
    694         border: 1px none;
    695710        font-size: 1px;
     711        border: 1px solid transparent;
    696712}
    697713
    698714.cke_skin_kama .cke_rtl .cke_dialog a.cke_btn_reset
     
    709725        width: 16px;
    710726        height: 16px;
    711727        background-repeat: no-repeat;
    712         border: none 1px;
    713728        font-size: 1px;
     729        border: 1px solid transparent;
    714730}
    715731
    716732.cke_skin_kama .cke_rtl .cke_dialog a.cke_btn_locked,
     
    741757        background-color : white;
    742758}
    743759
    744 .cke_skin_kama .cke_dialog .ImagePreviewBox table td {
     760.cke_skin_kama .cke_dialog .ImagePreviewBox table td
     761{
    745762        white-space: normal;
    746763}
    747764
     
    762779        padding : 2px;
    763780        opacity : 0.9;
    764781        filter : alpha(opacity=90);
    765 
    766782        background-color : #e4e4e4;
    767783}
    768784
    769 .cke_skin_kama .cke_dialog  .FlashPreviewBox
     785.cke_skin_kama .cke_dialog .FlashPreviewBox
    770786{
    771787        white-space : normal;
    772788        border : 2px ridge black;
     
    919935.cke_skin_kama .cke_rtl .cke_dialog_contents a.colorChooser
    920936{
    921937        margin-right: 10px;
    922 }
     938}
     939 No newline at end of file
  • _source/skins/office2003/dialog.css

     
    402402        padding: 1px 0px;
    403403}
    404404
     405/* #6200: Some browsers doesn't show the "focus outline" for certain elements */
     406.cke_skin_office2003 .cke_browser_ie .cke_dialog_ui_checkbox_input
     407{
     408        border: 1px solid transparent;
     409}
     410.cke_skin_office2003 .cke_browser_ie .cke_dialog_ui_selected
     411{
     412        border: 1px dotted #696969 !important;
     413}
     414.cke_skin_office2003 .cke_browser_gecko .cke_dialog_ui_checkbox_input:focus,
     415.cke_skin_office2003 .cke_browser_gecko .cke_dialog_ui_input_select:focus
     416{
     417        outline: 1px dotted #696969;
     418}
     419
    405420.cke_skin_office2003 div.cke_disabled .cke_dialog_ui_labeled_content *
    406421{
    407422        background-color : #a0a0a0;
     
    614629        width: 16px;
    615630        height: 16px;
    616631        background-repeat: no-repeat;
    617         border: 1px none;
    618632        font-size: 1px;
     633        border: 1px solid transparent;
    619634}
    620635
    621636.cke_skin_office2003 .cke_rtl .cke_dialog a.cke_btn_reset
     
    632647        width: 16px;
    633648        height: 16px;
    634649        background-repeat: no-repeat;
    635         border: none 1px;
    636650        font-size: 1px;
     651        border: 1px solid transparent;
    637652}
    638653
    639654.cke_skin_office2003 .cke_rtl .cke_dialog a.cke_btn_locked,
     
    654669        cursor: pointer;
    655670}
    656671
    657 .cke_skin_office2003 .cke_dialog  .ImagePreviewBox
     672.cke_skin_office2003 .cke_dialog .ImagePreviewBox
    658673{
    659674        border : 2px ridge black;
    660675        overflow : scroll;
     
    664679        background-color : white;
    665680}
    666681
    667 .cke_skin_office2003 .cke_dialog .ImagePreviewBox table td {
     682.cke_skin_office2003 .cke_dialog .ImagePreviewBox table td
     683{
    668684        white-space: normal;
    669685}
    670686
  • _source/skins/v2/dialog.css

     
    401401        padding: 1px 0px;
    402402}
    403403
     404/* #6200: Some browsers doesn't show the "focus outline" for certain elements */
     405.cke_skin_v2 .cke_browser_ie .cke_dialog_ui_checkbox_input
     406{
     407        border: 1px solid transparent;
     408}
     409.cke_skin_v2 .cke_browser_ie .cke_dialog_ui_selected
     410{
     411        border: 1px dotted #696969 !important;
     412}
     413.cke_skin_v2 .cke_browser_gecko .cke_dialog_ui_checkbox_input:focus,
     414.cke_skin_v2 .cke_browser_gecko .cke_dialog_ui_input_select:focus
     415{
     416        outline: 1px dotted #696969;
     417}
     418
    404419.cke_skin_v2 div.cke_disabled .cke_dialog_ui_labeled_content *
    405420{
    406421        background-color : #a0a0a0;
     
    616631        width: 16px;
    617632        height: 16px;
    618633        background-repeat: no-repeat;
    619         border: 1px none;
    620634        font-size: 1px;
     635        border: 1px solid transparent;
    621636}
    622637
    623638.cke_skin_v2 .cke_rtl .cke_dialog a.cke_btn_reset
     
    634649        width: 16px;
    635650        height: 16px;
    636651        background-repeat: no-repeat;
    637         border: none 1px;
    638652        font-size: 1px;
     653        border: 1px solid transparent;
    639654}
    640655
    641656.cke_skin_v2 .cke_rtl .cke_dialog a.cke_btn_locked,
     
    656671        cursor: pointer;
    657672}
    658673
    659 .cke_skin_v2 .cke_dialog  .ImagePreviewBox
     674.cke_skin_v2 .cke_dialog .ImagePreviewBox
    660675{
    661676        border : 2px ridge black;
    662677        overflow : scroll;
     
    666681        background-color : white;
    667682}
    668683
    669 .cke_skin_v2 .cke_dialog .ImagePreviewBox table td {
     684.cke_skin_v2 .cke_dialog .ImagePreviewBox table td
     685{
    670686        white-space: normal;
    671687}
    672688
     
    676692        _position: absolute;
    677693}
    678694
    679 .cke_skin_v2 .cke_dialog  .ImagePreviewLoader
     695.cke_skin_v2 .cke_dialog .ImagePreviewLoader
    680696{
    681697        position: absolute;
    682698        white-space : normal;
     
    691707        background-color : #e4e4e4;
    692708}
    693709
    694 .cke_skin_v2 .cke_dialog  .FlashPreviewBox
     710.cke_skin_v2 .cke_dialog .FlashPreviewBox
    695711{
    696712        white-space : normal;
    697713        border : 2px ridge black;
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy