Php 在模式对话框中,编辑图像对话框窗体不可单击
我正在使用引导模式弹出窗口打开ckeditor。它正在工作,但当我单击该对话框中的图像图标时,该对话框将打开,但不可单击 使用此代码Php 在模式对话框中,编辑图像对话框窗体不可单击,php,popup,modal-dialog,ckeditor,Php,Popup,Modal Dialog,Ckeditor,我正在使用引导模式弹出窗口打开ckeditor。它正在工作,但当我单击该对话框中的图像图标时,该对话框将打开,但不可单击 使用此代码 <script> CKEDITOR.replace('help_ldesc'); //CKEDITOR.replace('help_ldesc1'); $.fn.modal.Constructor.prototype.enforceFocus = function() { var $modalElement =
<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>
CKEDITOR.replace('help_ldesc');
//CKEDITOR.replace('help_ldesc1');
$.fn.modal.Constructor.prototype.enforceFocus=function(){
var$modalElement=此.$element;
$(文档).on('focusin.modal',函数(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();
}
});
};
我发现我的解决方案只是一个引导冲突。