Fixed another bug in `moveNodes`

This commit is contained in:
jos 2018-08-09 18:05:13 +02:00
parent 2ee39cbca8
commit d81e2b8dab
1 changed files with 1 additions and 1 deletions

View File

@ -2044,7 +2044,7 @@ Node.onDragEnd = function (nodes, event) {
? (newIndex + nodes.length)
: newIndex;
if (sameParent || oldIndex !== newIndex) {
if (!sameParent || oldIndex !== newIndex) {
// only register this action if the node is actually moved to another place
editor._onAction('moveNodes', {
count: nodes.length,