- createDOM: function(params) {
- var dom = $('<div document-node-element>'),
- widgetsContainer = $('<div class="canvas-widgets" contenteditable="false">'),
- container = $('<div document-element-content>');
+ createDOM: function(params, canvas) {
+ var dom = $('<div>')
+ .attr('document-node-element', ''),
+ widgetsContainer = $('<div>')
+ .addClass('canvas-widgets')
+ .attr('contenteditable', false),
+ container = $('<div>')
+ .attr('document-element-content', '');