X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/1038a12a841bbacec60cd8a73a93ecf1658ea8a5..45c37b7e0772059e5623e1c720d0534b6d112db1:/src/smartxml/fragments.js?ds=inline 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,