Problem/Motivation
Input format field getting displayed inconsistently depending on the permissions. Here are the scenarios:
1. When user has only basic filter (i.e "Use the Basic HTML text format" permission), the input format field disappears from the display, but leaving help text:
2. When user has only only restricted html filter (i.e. "Use the Restricted HTML text format" permission), the input format field displays both basic and Restricted
Proposed resolution
It's open for discussion how best/consistent we can make it so the it wouldn't confuse the content editor. Here is some options:
For scenario 1, we should at least have the format details as text (without dropdown).
For scenario 2, I understand "Restricted HTML" means we can have basic as well, but system doesn't necessary need to decide that. This way, we can avoid dropdown when only one filter is enabled for given user/role.
Steps to reproduce
1. Create a role with all article add/edit/delete permissions and "Use the Basic HTML text format" permission
2. Create a user and assign this new role
3. Login as the user created in step 2 and visit node/add/article
Remaining tasks
1. Discuss
User interface changes
Mostly depending on the solution
API changes
N/A
Data model changes
N/A
Comment | File | Size | Author |
---|---|---|---|
basic-and-restricted.png | 102.76 KB | vijaycs85 | |
only-basic.png | 81.07 KB | vijaycs85 |
Comments
Comment #2
Dinesh18 CreditAttribution: Dinesh18 as a volunteer commentedYes. It would be a good option to have no drop-down when only one filter is enabled to avoid confusion.
But I wonder if we should consider this as bug or Task ?
Comment #3
tim.plunkettComment #13
quietone CreditAttribution: quietone at PreviousNext commentedI tested this on Drupal 10.0.x, standard install, and when a user has only the restricted HTML filter there is no drop down with both basic and restricted.
Therefore, closing as cannot reproduce. If you are experiencing this problem on a supported version of Drupal reopen the issue, by setting the status to 'Active', and provide complete steps to reproduce the issue (starting from "Install Drupal core").
Thanks!