Skip to content
Snippets Groups Projects
Commit 58727202 authored by Kevin Paxman's avatar Kevin Paxman
Browse files

Merge branch 'feature/ISTWCMS-5975-ebremner-ckeditor-fix-not-logged-in' into '1.0.x'

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

See merge request !67
parents 6004727f e92c5e64
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 @@ ...@@ -2,13 +2,15 @@
* Ckeditor Modal * Ckeditor Modal
*/ */
(function ($, Drupal) { (function ($, Drupal) {
if ($.ui.dialog) { if ($.ui !== undefined) {
orig_allowInteraction = $.ui.dialog.prototype._allowInteraction; if ($.ui.dialog) {
$.ui.dialog.prototype._allowInteraction = function (event) { orig_allowInteraction = $.ui.dialog.prototype._allowInteraction;
if ($(event.target).closest('.cke_dialog').length) { $.ui.dialog.prototype._allowInteraction = function (event) {
return true; if ($(event.target).closest('.cke_dialog').length) {
} return true;
return orig_allowInteraction.apply(this, arguments); }
}; return orig_allowInteraction.apply(this, arguments);
};
}
} }
})(jQuery, Drupal); })(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