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