mirror of https://github.com/gophish/gophish
Fixed issue where links and other attributes could not be edited in CKEditor
parent
ba11f6428c
commit
f51758f8c9
|
@ -141,5 +141,19 @@ $(document).ready(function(){
|
||||||
$( '.modal-backdrop' ).not( '.fv-modal-stack' ).css( 'z-index', 1039 + (10 * $('body').data( 'fv_open_modals' )));
|
$( '.modal-backdrop' ).not( '.fv-modal-stack' ).css( 'z-index', 1039 + (10 * $('body').data( 'fv_open_modals' )));
|
||||||
$( '.modal-backdrop' ).not( 'fv-modal-stack' ).addClass( 'fv-modal-stack' );
|
$( '.modal-backdrop' ).not( 'fv-modal-stack' ).addClass( 'fv-modal-stack' );
|
||||||
});
|
});
|
||||||
|
$.fn.modal.Constructor.prototype.enforceFocus = function() {
|
||||||
|
$( document )
|
||||||
|
.off( 'focusin.bs.modal' ) // guard against infinite focus loop
|
||||||
|
.on( 'focusin.bs.modal', $.proxy( function( e ) {
|
||||||
|
if (
|
||||||
|
this.$element[ 0 ] !== e.target && !this.$element.has( e.target ).length
|
||||||
|
// CKEditor compatibility fix start.
|
||||||
|
&& !$( e.target ).closest( '.cke_dialog, .cke' ).length
|
||||||
|
// CKEditor compatibility fix end.
|
||||||
|
) {
|
||||||
|
this.$element.trigger( 'focus' );
|
||||||
|
}
|
||||||
|
}, this ) );
|
||||||
|
};
|
||||||
load()
|
load()
|
||||||
})
|
})
|
||||||
|
|
|
@ -170,5 +170,19 @@ function load(){
|
||||||
}
|
}
|
||||||
|
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
|
$.fn.modal.Constructor.prototype.enforceFocus = function() {
|
||||||
|
$( document )
|
||||||
|
.off( 'focusin.bs.modal' ) // guard against infinite focus loop
|
||||||
|
.on( 'focusin.bs.modal', $.proxy( function( e ) {
|
||||||
|
if (
|
||||||
|
this.$element[ 0 ] !== e.target && !this.$element.has( e.target ).length
|
||||||
|
// CKEditor compatibility fix start.
|
||||||
|
&& !$( e.target ).closest( '.cke_dialog, .cke' ).length
|
||||||
|
// CKEditor compatibility fix end.
|
||||||
|
) {
|
||||||
|
this.$element.trigger( 'focus' );
|
||||||
|
}
|
||||||
|
}, this ) );
|
||||||
|
};
|
||||||
load()
|
load()
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue