Fix: Store wlxml class with dashes instead of dots
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Tue, 16 Jul 2013 14:03:51 +0000 (16:03 +0200)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Tue, 16 Jul 2013 14:03:51 +0000 (16:03 +0200)
modules/documentCanvas/canvas/documentElement.js

index 0309136..c881c7f 100644 (file)
@@ -197,7 +197,7 @@ $.extend(DocumentNodeElement.prototype, {
     },
     setWlxmlClass: function(klass) {
         if(klass)
     },
     setWlxmlClass: function(klass) {
         if(klass)
-            this.dom().attr('wlxml-class', klass);
+            this.dom().attr('wlxml-class', klass.replace('.', '-'));
         else
             this.dom().removeAttr('wlxml-class');
     },
         else
             this.dom().removeAttr('wlxml-class');
     },