X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/5c2e36d7dbb5d7437b70183f87fb68ccb6c5d866..df0ff2d95fa546b84567c422db9aab4bbd63e8b2:/modules/documentCanvas/canvas/canvas.js?ds=inline 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());