當(dāng)在bootstrap的modal中使用ckeditor時,使用ckeditor中帶彈框的功能時無法輸入問題。
解決方法:在jquery和bootstrap加載之后引入fix的js,js內(nèi)容:
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() } })以上這篇關(guān)于ckeditor在bootstrap中modal中彈框無法輸入的解決方法就是小編分享給大家的全部內(nèi)容了,希望能給大家一個參考,也希望大家多多支持武林網(wǎng)。
新聞熱點(diǎn)
疑難解答