HEX
Server: Apache
System: Linux server2.voipitup.com.au 4.18.0-553.109.1.lve.el8.x86_64 #1 SMP Thu Mar 5 20:23:46 UTC 2026 x86_64
User: posscale (1027)
PHP: 8.2.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/posscale/subdomains/xibo/web/theme/default/libraries/bootstrap/js/bootstrap-ckeditor-fix.js
// bootstrap-ckeditor-fix.js
// hack to fix ckeditor/bootstrap compatibility bug when ckeditor appears in a bootstrap modal dialog
//
// Include this file AFTER both jQuery and bootstrap are loaded.

$.fn.modal.Constructor.prototype.enforceFocus = function() {
  modal_this = this
  $(document).on('focusin.modal', function (e) {
    if (modal_this.$element[0] !== e.target && !modal_this.$element.has(e.target).length 
    // add whatever conditions you need here:
    && !$(e.target.parentNode).hasClass('cke')
    && !$(e.target.parentNode).hasClass('cke_dialog_ui_input_text')  ) {
      modal_this.$element.focus()
    }
  })
};