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