fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactoring: Moving commands out of canvasManager
[fnpeditor.git]
/
modules
/
documentCanvas
/
canvas
/
canvas.js
diff --git
a/modules/documentCanvas/canvas/canvas.js
b/modules/documentCanvas/canvas/canvas.js
index
88a8839
..
a5d4825
100644
(file)
--- 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 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(),
var element = documentElement.DocumentNodeElement.createDOM({
tag: currentTag.prop('tagName').toLowerCase(),
- klass: currentTag.attr('class')
+ klass: currentTag.attr('class'),
+ meta: meta
});
element.append(currentTag.contents());
});
element.append(currentTag.contents());