eventBus.trigger.apply(eventBus, arguments);
};
- this.node = documentElement.data('wlxmlNode');
-
+ this.node = documentElement.wlxmlNode;
};
var getDisplayStyle = function(tag, klass) {
if(klass && klass.substr(0, 4) === 'item') {
return null;
}
+ if(klass === 'gap') {
+ return 'inline';
+ }
return 'block';
};
this.el.setDisplayStyle(getDisplayStyle(this.el.tag(), this.el.klass()));
this.el.clearWidgets();
- this.el.addWidget(widgets.labelWidget(this.el.tag(), this.el.klass()));
-
},
toggle: function(toggle) {
this.el.toggle(toggle);
$.extend(ListItemManager.prototype, {
setup: function() {
this.el.clearWidgets();
- this.el.addWidget(widgets.labelWidget(this.el.tag(), this.el.klass()));
- this.el.documentElement._container().css({display: 'list-item'});
},
toggleBullet: function(toggle) {
this.el.documentElement._container().css({display : toggle ? 'list-item' : 'block'});
$.extend(CommentManager.prototype, {
setup: function() {
this.el.clearWidgets();
- this.el.addWidget(widgets.labelWidget(this.el.tag(), this.el.klass()));
this.widget = widgets.commentAdnotation(this.el.node);
this.el.addWidget(this.widget);