您的位置:首页 > Web前端 > BootStrap

bootstrap的模态弹窗 和CKEditor的模态弹窗冲突问题解决

2016-12-27 14:30 525 查看
哪个页面有问题就在哪个页面加上如下js代码:

$.fn.modal.Constructor.prototype.enforceFocus = function () {     
modal_this = this              
$(document).on('focusin.modal', function (e) {  
if (modal_this.$element[0] !== e.target 
&& !modal_this.$element.has(e.target).length                  
&& !$(e.target.parentNode).hasClass('cke_dialog_ui_input_select') 
&& !$(e.target.parentNode).hasClass('cke_dialog_ui_input_text')) { 
modal_this.$element.focus()                  

})          

};
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  ckeditor
相关文章推荐