Skip to content

Wrong sorting by pasting between nested containers. #598

Closed
@tlayh

Description

@tlayh

Hi,

I have some issues with copy and paste between nested containers. The sorting is wrong, and the element gets always attached at the bottom.

Setup:
TYPO3 Vanilla (12.4.27) with ddev. Only b13/container_example (2.0.0) and b13/container (master or 3.1.5) are installed.

Scenario:

  • Target Page: Using the 2column from b13/container_example and put another 2column in the first column
  • Source Page: A single regular text element

If I now copy the text element from the source page and paste it into the target page above the inner 2column element, it is always added at the bottom.

I added a short screen recording where you can see what exactly I am doing.

Screencast-CopyPasteSorting.mov

I changed some code like shown in the draft pull request:
#597

This fixes the issue, but the method is also used in other places. I was not able to figure out the correct solution.

Best regards,
Thomas

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions