X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/1038a12a841bbacec60cd8a73a93ecf1658ea8a5..2528dc646a1348f49098067923025d065a0c3f41:/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,