Paragraph clipboard

Created on 16 July 2023, over 1 year ago

Problem/Motivation

A distinct editor limitation with Paragraphs is realising that complex paragraph you set up needs to be on another paragraph field or another node altogether.

It should not be technically difficult to copy and paste paragraphs to a new field/node, not-withstanding the UX of doing so. I have looked around for different approaches to see if they exist, and just decided to leave some notes as to how I would suggest doing it. The reason i'm putting it here is i'm not sure if the widget interface could be extended by contrib or not - eg similar to the "Duplicate" button.

Proposed resolution

1. Copying to clipboard. The only thing the "clipboard" (local storage for eg) needs is the paragraph ID and maybe the revision ID.

2. Paste. Obviously this is the bells and whistles bit, I would expect this to be similiar to the Duplicate action.

  1. View the clipboard. Does it have a history? An item might be in the form of: Cards #1234 from Entity #1234
  2. Can the current field accepts this paragraph type?
  3. Can the current field accept another item? (I assume this is something the Duplicate action has too do.
  4. Programmatically duplicate the target PG onto the field.

Remaining tasks

User interface changes

Additional actions and some sort of clipboard in a tray.

API changes

Data model changes

I don't think so.

✨ Feature request
Status

Active

Version

1.0

Component

User interface

Created by

🇦🇺Australia sime Melbourne

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

Comments & Activities

Production build 0.71.5 2024