Changes between Initial Version and Version 1 of Ticket #12525, comment 1


Ignore:
Timestamp:
Oct 8, 2014, 3:29:24 AM (10 years ago)
Author:
pittlu
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #12525, comment 1

    initial v1  
    11The solution:[[BR]]
    2 
    3 $.fn.modal.Constructor.prototype.enforceFocus = function () {
    4             var $modalElement = this.$element;
    5             $(document).on('focusin.modal', function (e) {
    6                 var $parent = $(e.target.parentNode);
    7                 if ($modalElement[0] !== e.target
    8                                 && !$modalElement.has(e.target).length
    9                                 && !$parent.hasClass('cke_dialog_ui_input_select')
    10                                 && !$parent.hasClass('cke_dialog_ui_input_text')
    11                                 && !$parent.hasClass('cke')) {
    12                     $modalElement.focus();
    13                 }
    14             });
    15         };
     2see:[http://dev.ckeditor.com/ticket/12525#comment:4]
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy