Skip to content

Commit

Permalink
Fix mayor bug that prevents deleting some elements.
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver Pulges committed Jun 2, 2014
1 parent ef6e3ef commit 301179a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/selection/selection.js
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@
node = selection.anchorNode,
offset = selection.anchorOffset;
if (ofNode) {
return (offset === 0 && (node.nodeName && node.nodeName === ofNode.toUpperCase() || wysihtml5.dom.getParentElement(node.parentNode, ofNode, 1)));
return (offset === 0 && (node.nodeName && node.nodeName === ofNode.toUpperCase() || wysihtml5.dom.getParentElement(node.parentNode, { nodeName: ofNode }, 1)));
} else {
return (offset === 0 && !this.getPreviousNode(node, true));
}
Expand Down

0 comments on commit 301179a

Please sign in to comment.