# Role Editor

<figure><img src="https://3250709389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MS33S0eoYwMaMrLb7T_%2Fuploads%2FIORKtoA0FWMaRk45EmDr%2Frole%20editor%20everything.jpg?alt=media&#x26;token=fe246289-1627-4d14-9694-22b5dce323d0" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
The Role Editor is only accessible for the Admin Role.
{% endhint %}

{% hint style="info" %}
The Cwicly User Role Editor allows you to control Cwicly UI changes as well as restrict access to Cwicly features.
{% endhint %}

You can choose the User Role you want to customise, such as: Administrator, Editor, Author, Contributor, Subscriber and toggle on/off the required capabilities.

{% hint style="info" %}
To go quickly, you can Toggle All or Copy and Paste your selection for other roles depending on your requirements for different users.
{% endhint %}

For ease of use, User Capabilities that can be customised are regrouped into categories: Gutenberg Editor, Global Block Behaviour, Block Toolbar, Miscellaneous, Blocks.

You can choose to set specific rules for a particular User which will override the Role Rules.

## Open&#x20;

* Navigate to the Wordpress Dashboard.
* Open the <img src="https://3250709389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MS33S0eoYwMaMrLb7T_%2Fuploads%2FIFujNW2w7vGBWle7QUxI%2Ffavicon-black%20(1).png?alt=media&#x26;token=7217d37c-7da0-48b5-a775-e14b6e5de2f4" alt="" data-size="line"> Cwicly tab.
* Find the Role Editor.
* Click to open.

<figure><img src="https://3250709389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MS33S0eoYwMaMrLb7T_%2Fuploads%2FIORKtoA0FWMaRk45EmDr%2Frole%20editor%20everything.jpg?alt=media&#x26;token=fe246289-1627-4d14-9694-22b5dce323d0" alt=""><figcaption></figcaption></figure>

## Quick Access from Cwicly Themer

The Role Editor can be opened quickly if you are on the Themer.

* Find Role Editor icon.
* Click to access Role Editor.

<figure><img src="https://3250709389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MS33S0eoYwMaMrLb7T_%2Fuploads%2FV5AUko1ARFDWMLzx847k%2Frole%20editor%20from%20themer.jpg?alt=media&#x26;token=1110b298-ad10-4632-b84e-219307a262b4" alt=""><figcaption></figcaption></figure>

## &#x20;Role

### User

You can select the User Role you want to customise, such as: Administrator, Editor, Author, Contributor, Subscriber and toggle on/off the required capabilities.

{% content-ref url="role-editor/user-role" %}
[user-role](https://docs.cwicly.com/themer/role-editor/user-role)
{% endcontent-ref %}

## Gutenberg Editor

The Gutenberg Editor panel regroups the Cwicly editor customisations that have been added to the Gutenberg Editor.&#x20;

{% content-ref url="role-editor/gutenberg-editor" %}
[gutenberg-editor](https://docs.cwicly.com/themer/role-editor/gutenberg-editor)
{% endcontent-ref %}

## Global Block Behaviour

The Global Block Behaviour panel regroups the different Cwicly global block behaviours that have been added.&#x20;

{% content-ref url="role-editor/global-block-behaviour" %}
[global-block-behaviour](https://docs.cwicly.com/themer/role-editor/global-block-behaviour)
{% endcontent-ref %}

## Block Toolbar

The Block Toolbar panel regroups the different Cwicly Block Toolbar modifications.&#x20;

They can be toggled on/off to satisfy different User Roles and include: Cwicly Controls, Dynamic Values, RichText Styling.

<details>

<summary>Toggle</summary>

1. Navigate to the Wordpress Admin Menu
2. Open the <img src="https://3250709389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MS33S0eoYwMaMrLb7T_%2Fuploads%2FIFujNW2w7vGBWle7QUxI%2Ffavicon-black%20(1).png?alt=media&#x26;token=7217d37c-7da0-48b5-a775-e14b6e5de2f4" alt="" data-size="line"> Cwicly tab
3. Find the Role Editor
4. Click to open
5. Find User Role menu
6. Click required role ( Administrator, Editor, Author, Contributor, Subscriber)
7. Find the Block Toolbar panel
8. Toggle the required Capability(ies) (Cwicly Controls, Dynamic Values, RichText Styling)

</details>

## Miscellaneous

The Miscellaneous panel regroups the different Cwicly Pseudo Classes/Elements modifications.&#x20;

They can be toggled on/off to satisfy different User Roles and include: Select or add Pseudo Classes/Elements.

<details>

<summary>Toggle</summary>

1. Navigate to the Wordpress Admin Menu
2. Open the <img src="https://3250709389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MS33S0eoYwMaMrLb7T_%2Fuploads%2FIFujNW2w7vGBWle7QUxI%2Ffavicon-black%20(1).png?alt=media&#x26;token=7217d37c-7da0-48b5-a775-e14b6e5de2f4" alt="" data-size="line"> Cwicly tab
3. Find the Role Editor
4. Click to open
5. Find User Role menu
6. Click required role ( Administrator, Editor, Author, Contributor, Subscriber)
7. Find the Miscellaneous panel
8. Toggle the required Capability(ies) (Select or add Pseudo Classes/Elements)

</details>

## Code Block

The Code Block panel regroups the different languages that can be used in the Code Block.

{% hint style="info" %}
By default, all languages are disabled.
{% endhint %}

{% hint style="warning" %}
Make sure you trust the code you input in a code block and consider it safe. This code will be run as-is with no prior checks.
{% endhint %}

## Blocks

The Blocks panel regroups the different Cwicly Blocks.&#x20;

They can be toggled on/off to satisfy different User Roles and include all the Cwicly Blocks.

{% hint style="info" %}
To include or remove all Cwicly Blocks you can click the Toggle All button.
{% endhint %}

<details>

<summary>Toggle</summary>

1. Navigate to the Wordpress Admin Menu
2. Open the <img src="https://3250709389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MS33S0eoYwMaMrLb7T_%2Fuploads%2FIFujNW2w7vGBWle7QUxI%2Ffavicon-black%20(1).png?alt=media&#x26;token=7217d37c-7da0-48b5-a775-e14b6e5de2f4" alt="" data-size="line"> Cwicly tab
3. Find the Role Editor
4. Click to open
5. Find User Role menu
6. Click required role ( Administrator, Editor, Author, Contributor, Subscriber)
7. Find the Blocks panel
8. Toggle the required Block(s) or Click Toggle All<br>

</details>
