CKEditor 4 - Link dialog doesn't work when in twitter bootstrap modal -
i have instance of ckeditor in twitter bootstrap modal, working fine, except when try use dialog has textbox or dropdown not accessible.
i'm wondering if 1 else has had such issue , found way make work.
thanks
edit:
i did digging , found hack fixed issue.
just put after bootstrap script , problem fixed
<script> //the final solution code bugs ckeditor in twitter bootstrap3' modal $.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>
Comments
Post a Comment