Bootstrap: https://blog.csdn.net/Fabuler/article/details/50452784
jQuery UI: http://www.13com.net/site/?p=390
当在bootstrap的modal中使用ckeditor时,使用ckeditor中带弹框的功能时无法输入问题。
解决方法:在jquery和bootstrap加载之后引入fix的js,js内容:
1 2 3 4 5 6 7 8 9 10 |
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() } }) |