+ var s = this.getSelection(),
+ f = s.toDocumentFragment();
+ if(f && f instanceof f.RangeFragment) {
+ var $current = this.wrapper.find('.current-node-element');
+ var current = $current && this.getDocumentElement($current.parent()[0]);
+
+ if($current) {
+ $current.removeClass('current-node-element');
+ }
+ if(current) {
+ current.markAsCurrent(false);
+ }
+ }