Copy and paste block items and their settings in the Data Type editor #22058
deanleigh
started this conversation in
Features and ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When configuring a Block Grid or Block List Data Type, there's currently no way to copy a block item and its settings from one Data Type to another. You have to recreate it manually every time.
A copy and paste action on each block card would solve this.
Looking at the source, umb-block-type-card already has slot="actions" but the action bar in umb-input-block-type is hardcoded. Making it extensible and registering a copy action would benefit all block editors as they share the same component.
Happy to submit a PR if the approach sounds right.
Note
Not sure if this overlaps with any reusable blocks work already in progress — happy to be pointed in the right direction if so.
Beta Was this translation helpful? Give feedback.
All reactions