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