The Copy to clipboard button is now disabled for unsaved paragraphs in the paragraphs_clipboard functionality and hidden in layout_paragraphs_builder.
Enhanced error handling now provides a clear message when attempting to copy an unsaved paragraph: βYou cannot copy an item that has not yet been saved.β
Thank you @vishal.kadam for the review.
I've resolved all the suggestions and pushed them to the 1.0.x branch.
Regarding namespaces, I left them out of constructor doc comments to keep within the 80-char limit.
hhvardan β created an issue.
Added Layout Paragraphs Clipboard submodule to the Paragraphs Clipboard β module to extend the functionality of the Layout Paragraphs (layout_paragraphs) module by adding copy-paste functionality.
Added the Layout Paragraphs Clipboard submodule to extend the capabilities of the Layout Paragraphs β module by introducing copy-paste functionality.
After enabling the Layout Paragraphs Clipboard submodule, no additional configuration is required. The module automatically becomes available for use in any field using the Layout Paragraphs formatter.
The submodule requires the Layout Paragraphs and Paragraphs Clipboard modules to be installed and configured on your Drupal site.
Iβve been working on implementing the paragraph clipboard functionality, which is currently available in a beta version https://www.drupal.org/project/paragraphs_clipboard β
The key features include the ability to copy a paragraphβs ID and revision ID to a tempstore, allowing for pasting into other fields.
The Copy to clipboard and Paste from clipboard buttons have been implemented exactly as shown in the screenshot in the issue description.
hhvardan β created an issue.
hhvardan β created an issue.
Yes, now it works for me. Thanks.
hhvardan β created an issue.