【问题标题】:CKEditor image dialog forms not clickable when in a modal dialog在模态对话框中时,CKEditor 图像对话框表单不可点击
【发布时间】:2016-03-03 06:04:07
【问题描述】:

我正在使用引导模式弹出窗口打开 ckeditor。它正在工作,但是当我单击该对话框中的图像图标时,它会打开,但不可单击。

【问题讨论】:

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

标签: php popup modal-dialog ckeditor


【解决方案1】:

使用此代码。

<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>

【讨论】:

    猜你喜欢
    • 2013-02-27
    • 1970-01-01
    • 1970-01-01
    • 2023-03-05
    • 2018-11-02
    • 2019-05-31
    • 1970-01-01
    • 2012-11-10
    • 1970-01-01
    相关资源
    最近更新 更多