---
title: "ITextPermissionsData | Customer's Canvas On-Premises"
canonical: "https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-interfaces/ITextPermissionsData/"
---

# ITextPermissionsData

> A structure defining permissions for text elements.

## Interfaces

### ITextPermissionsData

#### Example

```json
{
   "defaultItemsConfig": {
       "text": {
           "textPermissions": {
               "allowChangeText": false,
               "allowChangeFontColor": false,
               "allowChangeShadow": false,
               "allowChangeStroke": false
           }
       }
   }
}
```

#### Properties

##### allowChangeFont?

```ts
optional allowChangeFont?: boolean;
```

Enables the **Font name** and **Font style** lists in the Top Toolbar. The default value is `true`.

##### allowChangeFontColor?

```ts
optional allowChangeFontColor?: boolean;
```

Enables the **Color picker** in the Top Toolbar for plain text. By default, the **Color picker** is enabled.

##### allowChangeFontSize?

```ts
optional allowChangeFontSize?: boolean;
```

Enables the **Font size** box in the Top Toolbar for plain text. The default value is `true`.

##### allowChangeShadow?

```ts
optional allowChangeShadow?: boolean;
```

Enables the **Shadow** button in the Top Toolbar. By default, this button is enabled.

##### allowChangeStroke?

```ts
optional allowChangeStroke?: boolean;
```

Enables the **Stroke** button in the Top Toolbar. By default, this button is enabled.

##### allowChangeStrokeColor?

```ts
optional allowChangeStrokeColor?: boolean;
```

Enables the **Stroke color** button in the Top Toolbar for plain text. By default, this button is enabled.

##### allowChangeText?

```ts
optional allowChangeText?: boolean;
```

Allows for changing the content and enables the **Edit** button in the context menu. The default value is `true`.

##### allowChangeTextAlignment?

```ts
optional allowChangeTextAlignment?: boolean;
```

Enables the horizontal alignment buttons in the Top Toolbar for plain text. These buttons are enabled by default.

##### allowChangeTextBIU?

```ts
optional allowChangeTextBIU?: boolean;
```

Enables the **Faux bold**, **Faux italic**, and **Underlined** buttons in the Top Toolbar for plain text. These buttons are enabled by default.

##### allowTextFormatting?

```ts
optional allowTextFormatting?: boolean;
```
