- dom.data('other-attrs', params.others);
-
- /* display style */
- var displayStyle = getDisplayStyle(params.tag, params.klass);
- dom.css('display', displayStyle);
- container.css('display', displayStyle);
-
- var widgets = $('<div class="canvas-widgets" contenteditable="false">');
- widgets.append($('<span class="canvas-widget canvas-widget-label">').text(params.tag + (params.klass ? ' / ' + params.klass : '')));
- dom.append(widgets);
-
- // Make sure widgets aren't navigable with arrow keys
- widgets.find('*').add(widgets).attr('tabindex', -1);
-
- dom.append(container);