Copy/paste from/to Layout Paragraphs widget can create a "broken" paragraph

Created on 20 November 2024, 2 days ago

Problem/Motivation

After copying child content of a Layout Paragraphs container, it's possible to create a "broken" paragraph which does not display on the edit form, so cannot easily be edited or corrected.

Steps to reproduce

  1. Create or edit a node which has a field suitably configured as a Layout Paragraphs container, and which uses the Layout Paragraphs widget.
  2. Add a Layout Paragraphs paragraph.
  3. Add a simple Paragraph inside the Layout Paragraphs container from [2].
  4. Save, then go back to edit the same node.
  5. Use copy to clipboard on the child paragraph from [3].
  6. Create or edit a separate node, similar to [1].
  7. Go to add paragraph into the same field used for [2], then from the Choose a component menu, select Paste from clipboard.
  8. At this point, it appears that nothing was pasted into the form.
  9. Save the node -> The pasted content is visible in the node view.
  10. Go back to edit -> The pasted content is not visible in the form.
  11. Repeat the above steps 1 - 7, but at step 8, choose Paste from clipboard with edit.
  12. This works - the pasted content appears in the form immediately, and after save/edit.

Proposed resolution

Change Paste from clipboard behaviour to exactly match Paste from clipboard with edit, except without showing the intermediate edit form.

🐛 Bug report
Status

Active

Version

1.0

Component

User interface

Created by

🇬🇧United Kingdom andy inman Gloucestershire, UK

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024