Fix theme editing.
[redakcja.git] / src / redakcja / static / js / wiki / view_editor_wysiwyg.js
index 4554bbe..5492589 100644 (file)
                                 spoint.insertNode(btag[0])
                                 btag.replaceWith(text);
                                 selection.removeAllRanges();
-                                openForEdit($('.motyw[theme-class="' + id + '"]'));
+                                openForEdit($('[x-node="motyw"][theme-class="' + id + '"]'));
                             }
                         });
                     }