In case of inline document node elements whose context (text) starts
at the beginning of a new line, setting current-node-element on its
main node caused a border to start at the end of a previous line
and then wrap the next one where texts begins.
getCurrentNodeElement: function() {
getCurrentNodeElement: function() {
- return this.getDocumentElement(this.wrapper.find('.current-node-element')[0]);
+ return this.getDocumentElement(this.wrapper.find('.current-node-element').parent()[0]);
},
getCurrentTextElement: function() {
},
getCurrentTextElement: function() {
element.dom().addClass('current-text-element');
} else {
this.wrapper.find('.current-node-element').removeClass('current-node-element')
element.dom().addClass('current-text-element');
} else {
this.wrapper.find('.current-node-element').removeClass('current-node-element')
- element.dom().addClass('current-node-element');
+ element._container().addClass('current-node-element');
this.publisher('currentElementChanged', element);
}
}.bind(this);
this.publisher('currentElementChanged', element);
}
}.bind(this);
},
toggleHighlight: function(toogle) {
},
toggleHighlight: function(toogle) {
- this.dom().toggleClass('highlighted-element');
+ this._container().toggleClass('highlighted-element');