fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
editor: canvas - enter on an empty last list item creates paragraph after list
[fnpeditor.git]
/
src
/
smartxml
/
fragments.js
diff --git
a/src/smartxml/fragments.js
b/src/smartxml/fragments.js
index
b1befdf
..
d932592
100644
(file)
--- 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);
},
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,
boundriesSiblingParents: function() {
return this.startNode.document.getSiblingParents({
node1: this.startNode,