Fixes #2199
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Tue, 19 Mar 2013 14:04:17 +0000 (15:04 +0100)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Tue, 19 Mar 2013 14:04:17 +0000 (15:04 +0100)
redakcja/static/js/wiki/view_editor_wysiwyg.js

index 3ccaea7..ac6724a 100644 (file)
                     }
                 }
                 
-                $(specialCharsContainer).remove();
             });         
             $('#specialCharsClose').click(function(){
                 $(specialCharsContainer).remove();
                 });
 
                 $(document).bind('click.blur-overlay', function(event){
-                    if ($(event.target).parents('.html-editarea').length > 0) {
+                    if ($(event.target).closest('.html-editarea, #specialCharsContainer').length > 0) {
                         return;
                     }
                     save();