//================================================
// 解决ckeditor在bootstrap中modal中弹框无法输入问题
// 在 jquery 和 bootstrap 之后引用
//================================================
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()
}
})
参考:https://stackoverflow.com/questions/22637455/how-to-use-ckeditor-in-a-bootstrap-modal