Problem/Motivation

The editor does not always need the inline ability to insert paragraphs.

Steps to reproduce

There is no way to hide the "Add" button, displayed underneath the table, for Administrator or other roles with the permission to add new paragraphs.

Proposed resolution

We need to expand field formatter settings to include the "Hide Add button" checkbox.

Comments

edwardsay created an issue. See original summary.

edwardsay’s picture

StatusFileSize
new2.54 KB
lazzyvn’s picture

Status: Needs review » Closed (works as designed)

I don't think the module needs your extra option. you can enable paragraph type permission or field permission which it supports

robcarr’s picture

StatusFileSize
new2.19 KB

I disagree with the last comment. Whilst permissions can control the visibility of the 'Add' button, it's a confusing UX for content managers who generally have to select the 'Edit' tab in Drupal to alter the content. It's important to keep UX consistent

The patch at #2 no longer applies. Patch file attached

robcarr’s picture

Status: Closed (works as designed) » Needs review

Re-opening. Let me know if you would prefer an MR: didn't want to waste effort if you're going to bin this good suggestion again

jrochate’s picture

This patch works fine.

I also think if there is an option to hide operations dropdown, there should also be an option to hide the add button.

Please add this to the module.

lazzyvn’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

jrochate’s picture

Thanks @lazzyvn. I suggest giving credits to people who made the patches that help on this feature.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.