| 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 | | }; |
| | 2 | see:[http://dev.ckeditor.com/ticket/12525#comment:4] |