Thannk you @Andy Inman
Just wanted to follow up on this application, which was submitted about 5 months ago.
Please let me know if thereβs anything I can clarify or update to help move this forward.
Thank you!
@Andy Inman Thanks for checking and for your helpful comment.
I updated the route to use _entity_access: 'paragraph.update' instead of 'access content'.
Now, only users who can edit the paragraph will be able to use the copy feature.
About the message: youβre right that itβs easy to miss at the top of the page, but for now, Iβll keep using the default Drupal message system.
Showing the message closer to the paragraph would be a great improvement.
Using a JS alert could work too, but itβs not the best choice for Drupal UX and accessibility.
Iβve implemented a contextual link for paragraphs that allows copying to the clipboard via an AJAX callback.
The link is injected conditionally when the
Paragraphs Edit β
module is enabled.
This is duplicate of the β¨ Allow to select different targets Active
Made the following improvements/issue fixes:
- Added plus/minus icon toggle for accordion headers.
- Added logic to switch icons using .hidden and .visible classes on open/close.
- Active tab and accordion states were not synced during screen resizing.
Need some code refactoring
The issue appears to be resolved with the current version. I tested it on version 2.2.0, and it works as expected now.
Tabs now automatically switch to an accordion layout when the screen width drops below a configurable breakpoint. The breakpoint is set to 768px by default but can be adjusted in the moduleβs configuration.
The issue is ready for review.
hhvardan β created an issue.
I am changing priority as per Issue priorities. β
I am changing priority as per Issue priorities. β
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.