【发布时间】:2016-03-03 06:04:07
【问题描述】:
我正在使用引导模式弹出窗口打开 ckeditor。它正在工作,但是当我单击该对话框中的图像图标时,它会打开,但不可单击。
【问题讨论】:
-
我发现我的解决方案只是一个引导冲突。
标签: php popup modal-dialog ckeditor
我正在使用引导模式弹出窗口打开 ckeditor。它正在工作,但是当我单击该对话框中的图像图标时,它会打开,但不可单击。
【问题讨论】:
标签: php popup modal-dialog ckeditor
使用此代码。
<script>
CKEDITOR.replace('help_ldesc');
//CKEDITOR.replace('help_ldesc1');
$.fn.modal.Constructor.prototype.enforceFocus = function() {
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 && $(e.target).parentsUntil('*[role="dialog"]').length === 0) {
$modalElement.focus();
}
});
};
</script>
【讨论】: