在模式对话框中时,CKEditor图像对话框窗体不可单击 [英] CKEditor image dialog forms not clickable when in a modal dialog
本文介绍了在模式对话框中时,CKEditor图像对话框窗体不可单击的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用引导程序模式弹出窗口来打开ckeditor.它正在工作,但是当我单击该对话框中的图像图标时会打开,但不可单击.
I am using bootstrap modal popup to open ckeditor. It's working but when I to click the image icon in that dialog opens, but not clickable.
推荐答案
使用此代码.
<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图像对话框窗体不可单击的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文