Skip to content
Snippets Groups Projects
Commit e92c5e64 authored by Eric Bremner's avatar Eric Bremner
Browse files

ISTWCMS-5975: adding fix for ckeditor when users are not logged in

parent 6004727f
No related branches found
No related tags found
1 merge request!67ISTWCMS-5975: adding fix for ckeditor when users are not logged in
......@@ -2,13 +2,15 @@
* Ckeditor Modal
*/
(function ($, Drupal) {
if ($.ui.dialog) {
orig_allowInteraction = $.ui.dialog.prototype._allowInteraction;
$.ui.dialog.prototype._allowInteraction = function (event) {
if ($(event.target).closest('.cke_dialog').length) {
return true;
}
return orig_allowInteraction.apply(this, arguments);
};
if ($.ui !== undefined) {
if ($.ui.dialog) {
orig_allowInteraction = $.ui.dialog.prototype._allowInteraction;
$.ui.dialog.prototype._allowInteraction = function (event) {
if ($(event.target).closest('.cke_dialog').length) {
return true;
}
return orig_allowInteraction.apply(this, arguments);
};
}
}
})(jQuery, Drupal);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment