Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/85.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 在模式对话框中,编辑图像对话框窗体不可单击_Php_Popup_Modal Dialog_Ckeditor - Fatal编程技术网

Php 在模式对话框中,编辑图像对话框窗体不可单击

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 =

我正在使用引导模式弹出窗口打开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>

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();
}
});
};

我发现我的解决方案只是一个引导冲突。