Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
fix: paste below by default
Browse files Browse the repository at this point in the history
  • Loading branch information
marionebl committed Sep 10, 2018
1 parent f54fbd8 commit b1b7d12
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions src/renderer/create-edit-message-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,23 +88,7 @@ export function createEditMessageHandler({
});
}
break;
case Types.ElementTargetType.Auto: {
if (
targetElement.acceptsChildren() &&
sourceElement.getId() !== targetElement.getId()
) {
store.insertElementInside({
element: clonedElement,
targetElement
});
} else {
store.insertElementAfter({
element: clonedElement,
targetElement
});
}
break;
}
case Types.ElementTargetType.Auto:
case Types.ElementTargetType.Below:
store.insertElementAfter({
element: clonedElement,
Expand Down

0 comments on commit b1b7d12

Please sign in to comment.