From: Aleksander Ɓukasz Date: Tue, 16 Jul 2013 14:03:51 +0000 (+0200) Subject: Fix: Store wlxml class with dashes instead of dots X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/5be78c82d971e662b13b3310f2ed0b900fd7c426?ds=sidebyside;hp=5c2e36d7dbb5d7437b70183f87fb68ccb6c5d866 Fix: Store wlxml class with dashes instead of dots --- diff --git a/modules/documentCanvas/canvas/documentElement.js b/modules/documentCanvas/canvas/documentElement.js index 0309136..c881c7f 100644 --- a/modules/documentCanvas/canvas/documentElement.js +++ b/modules/documentCanvas/canvas/documentElement.js @@ -197,7 +197,7 @@ $.extend(DocumentNodeElement.prototype, { }, setWlxmlClass: function(klass) { if(klass) - this.dom().attr('wlxml-class', klass); + this.dom().attr('wlxml-class', klass.replace('.', '-')); else this.dom().removeAttr('wlxml-class'); },