zoukankan      html  css  js  c++  java
  • 使用bootstrap框架的模态框与ckeditor产生冲突,ckeditor的弹出窗不可用时的解决方法

    这样可以解决冲突
    $.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
                   // add whatever conditions you need here:
                &&
                !$(e.target.parentNode).hasClass('cke_dialog_ui_input_select') && !$(e.target.parentNode).hasClass('cke_dialog_ui_input_text')) {
                modal_this.$element.focus()
             }
          })
      };
  • 相关阅读:
    JQuery学习之语法
    sysbench
    fio——IO基准测试
    Python待分析的模块
    Taglist
    tcprstat
    SQL注入
    Nytro MegaRaid
    dstat
    Python之hashlib模块
  • 原文地址:https://www.cnblogs.com/mysic/p/5443429.html
Copyright © 2011-2022 走看看