Closed fvwanja closed 2 months ago
Provided the project uses .yaml files, another solution could be to search for showHtmlButtonForNonAdmins: false
in all .yaml
files and replace it with showHtmlButtonForNonAdmins: true
and then running
./craft project-config/apply
π«
βDieses Plug-in wird nicht mehr weiterentwickelt. Der Entwickler empfiehlt, stattdessen CKEditor zu verwenden.β
Description
Since https://github.com/craftcms/redactor/issues/129 we have a checkbox in each Redactor field, that let's us choose, whether the "HTML" button should be visible for non-admin users or not (see screenshot). π
I just made a website for a client and have now received a request that another user group should also have access to the "HTML" button function. Now I have to go through all 57 Redactor fields manually to make that change. I also don't have the possibility of setting the authorisation for one or more user groups. It is only possible to select administrators or non-administrators. π₯
@andris-sevcenko stated in https://github.com/craftcms/redactor/issues/129#issuecomment-477912799, that the user could then just edit the HTML via the inspector. Yeah well. We can hack ourselves if we wanted to but I don't see that as an argument that should count since Redactor eating whatever HTML we feed it, is a matter of validation: I even declare which arguments, styles and elements I want to keep in my Redactor configuration file (config/redactor/foo.json). Shouldn't that prevent any manual manipulation that does not follow the rules? π
How about a command for the command line, something like:
that could switch all 57 redactor fields at once!? It would really make things so much easier π
π Merci π
Steps to reproduce
Show the βHTMLβ button for non-admin users
Additional info