X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/1038a12a841bbacec60cd8a73a93ecf1658ea8a5..b11a0eec5cc01d83229ca9459b1e4f7e592152ce:/src/smartxml/fragments.js diff --git a/src/smartxml/fragments.js b/src/smartxml/fragments.js index b1befdf..d932592 100644 --- a/src/smartxml/fragments.js +++ b/src/smartxml/fragments.js @@ -79,6 +79,9 @@ $.extend(RangeFragment.prototype, { hasSiblingBoundries: function() { return this.isValid() && this.startNode.isSiblingOf(this.endNode); }, + hasSameBoundries: function() { + return this.isValid() && this.startNode.sameNode(this.endNode); + }, boundriesSiblingParents: function() { return this.startNode.document.getSiblingParents({ node1: this.startNode,