fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allowing for canvas to listen to dom key events
[fnpeditor.git]
/
modules
/
documentCanvas
/
canvas
/
documentElement.js
diff --git
a/modules/documentCanvas/canvas/documentElement.js
b/modules/documentCanvas/canvas/documentElement.js
index
d2d3a64
..
f6137ef
100644
(file)
--- a/
modules/documentCanvas/canvas/documentElement.js
+++ b/
modules/documentCanvas/canvas/documentElement.js
@@
-77,9
+77,10
@@
var DocumentNodeElement = function(htmlElement, canvas) {
$.extend(DocumentNodeElement, {
createDOM: function(params) {
$.extend(DocumentNodeElement, {
createDOM: function(params) {
- var dom = $('<div>').attr('wlxml-tag', params.tag);
+ var dom = $('<div>')
+ .attr('wlxml-tag', params.tag);
if(params.klass)
if(params.klass)
- dom.attr('wlxml-class', params.klass);
+ dom.attr('wlxml-class', params.klass
.replace(/\./g, '-')
);
return dom;
},
return dom;
},