X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/5c2e36d7dbb5d7437b70183f87fb68ccb6c5d866..a72a2ac218147b7c6874fbdc361d0a3fb6532a88:/modules/documentCanvas/canvas/canvas.js diff --git a/modules/documentCanvas/canvas/canvas.js b/modules/documentCanvas/canvas/canvas.js index 88a8839..a5d4825 100644 --- a/modules/documentCanvas/canvas/canvas.js +++ b/modules/documentCanvas/canvas/canvas.js @@ -23,9 +23,18 @@ $.extend(Canvas.prototype, { var currentTag = $(this); if(currentTag.attr('wlxml-tag')) return; + + var meta = {}; + for(var i = 0; i < this.attributes.length; i++) { + var attr = this.attributes[i]; + if(attr.name.substr(0, 5) === 'meta-') + meta[attr.name.substr(5)] = attr.value; + } + var element = documentElement.DocumentNodeElement.createDOM({ tag: currentTag.prop('tagName').toLowerCase(), - klass: currentTag.attr('class') + klass: currentTag.attr('class'), + meta: meta }); element.append(currentTag.contents());