关于ckeditor在bootstrap中modal中弹框无法输入的解决方法
时间:2021-04-15 11:16:00|栏目:JavaScript代码|点击: 次
当在bootstrap的modal中使用ckeditor时,使用ckeditor中带弹框的功能时无法输入问题。
解决方法:在jquery和bootstrap加载之后引入fix的js,js内容:
var $modalElement = this.$element;
$(document).on('focusin.modal', function (e) {
var $parent = $(e.target.parentNode);
if ($modalElement[0] !== e.target && !$modalElement.has(e.target).length
// add whatever conditions you need here:
&&
!$parent.hasClass('cke_dialog_ui_input_select') && !$parent.hasClass('cke_dialog_ui_input_text')) {
$modalElement.focus()
}
})
参考此网址
上一篇:js获取php变量的实现代码
栏 目:JavaScript代码
本文标题:关于ckeditor在bootstrap中modal中弹框无法输入的解决方法
本文地址:http://www.codeinn.net/misctech/101460.html






