Fixes #1539
[redakcja.git] / redakcja / static / js / wiki / view_editor_wysiwyg.js
index 3a5c411..1b75500 100644 (file)
@@ -37,7 +37,7 @@
         }
 
         // don't allow themes inside annotations
-        if (node.is('*[x-annotation-box] *'))
+        if (node.closest('[x-node="pe"]').length > 0)
             return false;
 
         return true;