关于ckeditor在bootstrap中modal中弹框无法输入的解决方法

2022-01-13,,,,

今天小编就为大家分享一篇关于ckeditor在bootstrap中modal中弹框无法输入解决方法,具有很好的参考价值,希望对大家有所帮助。一起跟随小编过来看看吧

当在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() } })

参考此网址

以上这篇关于ckeditor在bootstrap中modal中弹框无法输入的解决方法就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持本站。

以上就是关于ckeditor在bootstrap中modal中弹框无法输入的解决方法的详细内容,更多请关注本站其它相关文章!

《关于ckeditor在bootstrap中modal中弹框无法输入的解决方法.doc》

下载本文的Word格式文档,以方便收藏与打印。