解决ckeditor在bootstrap中modal中弹框无法输入问题
2016-01-03 22:11
1051 查看
当在bootstrap的modal中使用ckeditor时,使用ckeditor中带弹框的功能时无法输入问题。
解决方法:在jquery和bootstrap加载之后引入fix的js,js内容:
参考此网址
解决方法:在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() } })
参考此网址
相关文章推荐
- bootstrap+brite实现的html5的联系人增删改查入门教程
- Bootstrap字体图标(glyphicons)
- bootstrap实现弹窗和拖动效果
- bootstrap实现弹窗和拖动效果
- Bootstrap辅助类
- Bootstrap图片
- Bootstrap登录样式
- Bootstrap按钮
- Bootstrap组件On和Off语法
- Bootstrap表单(二)
- Bootstrap创建表单(一)
- Bootstrap排版
- bootstrap插件bootbox参数和自定义弹出框宽度设置
- Bootstrap Table简单例子学习
- Bootstrap
- Bootstrap结合使用JavaScript插件
- Bootstrap网格系统
- 值得分享的Bootstrap Ace模板实现菜单和Tab页效果
- Netty4学习笔记(3)-- ServerBootstrap
- bootstrap入门