Ticket #6200: 6200_3.patch

File 6200_3.patch, 2.2 KB (added by Garry Yao, 13 years ago)
  • _source/plugins/dialog/plugin.js

     
    23302330                                var me = this;
    23312331                                dialog.on( 'load', function()
    23322332                                        {
    2333                                                 if ( me.getInputElement() )
     2333                                                var input = me.getInputElement();
     2334                                                if ( input )
    23342335                                                {
    2335                                                         me.getInputElement().on( 'focus', function()
     2336                                                        var focusClass = me.type in { 'checkbox' : 1, 'ratio' : 1 } && CKEDITOR.env.ie && CKEDITOR.env.version < 8 ? 'cke_dialog_ui_focused' : '';
     2337                                                        input.on( 'focus', function()
    23362338                                                                {
    23372339                                                                        dialog._.tabBarMode = false;
    23382340                                                                        dialog._.hasFocus = true;
    23392341                                                                        me.fire( 'focus' );
    2340                                                                 }, me );
     2342                                                                        focusClass && this.addClass( focusClass );
     2343
     2344                                                                });
     2345
     2346                                                        input.on( 'blur', function()
     2347                                                                {
     2348                                                                        me.fire( 'blur' );
     2349                                                                        focusClass && this.removeClass( focusClass );
     2350                                                                });
    23412351                                                }
    23422352                                        } );
    23432353
  • _source/skins/kama/dialog.css

     
    920919{
    921920        margin-right: 10px;
    922921}
     922
     923/* #6200: IE<8 doesn't support CSS outline property, emulated with dotted border. */
     924.cke_skin_kama .cke_browser_ie .cke_dialog_ui_checkbox_input,
     925.cke_skin_kama .cke_browser_ie .cke_dialog_ui_ratio_input,
     926.cke_skin_kama .cke_browser_ie .cke_btn_reset,
     927.cke_skin_kama .cke_browser_ie .cke_btn_locked,
     928.cke_skin_kama .cke_browser_ie .cke_btn_unlocked,
     929{
     930        *border: 1px solid transparent !important;
     931}
     932
     933.cke_skin_kama .cke_browser_ie .cke_dialog_ui_focused,
     934.cke_skin_kama .cke_browser_ie .cke_btn_over
     935{
     936        *border: 1px dotted #696969 !important;
     937}
     938
     939/* No automatic focus outline for some input elements, e.g. checkbox */
     940.cke_skin_kama .cke_browser_gecko .cke_dialog_ui_checkbox_input:focus,
     941.cke_skin_kama .cke_browser_gecko .cke_dialog_ui_radio_input:focus,
     942.cke_skin_kama .cke_browser_gecko .cke_dialog_ui_input_select:focus,
     943.cke_skin_kama .cke_browser_gecko .cke_btn_over
     944{
     945        outline: 1px dotted #696969;
     946}
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy