Account created on 18 May 2013, almost 12 years ago
#

Merge Requests

Recent comments

πŸ‡¦πŸ‡²Armenia hhvardan

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!

πŸ‡¦πŸ‡²Armenia hhvardan

@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.

πŸ‡¦πŸ‡²Armenia hhvardan

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.

πŸ‡¦πŸ‡²Armenia hhvardan

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.

πŸ‡¦πŸ‡²Armenia hhvardan

The issue appears to be resolved with the current version. I tested it on version 2.2.0, and it works as expected now.

πŸ‡¦πŸ‡²Armenia hhvardan

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.

πŸ‡¦πŸ‡²Armenia hhvardan

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.”

πŸ‡¦πŸ‡²Armenia hhvardan

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.

πŸ‡¦πŸ‡²Armenia hhvardan

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.

πŸ‡¦πŸ‡²Armenia hhvardan

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.

πŸ‡¦πŸ‡²Armenia hhvardan

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.

πŸ‡¦πŸ‡²Armenia hhvardan

Yes, now it works for me. Thanks.

Production build 0.71.5 2024