# RestrictedEditingConfig

interface

The configuration of the restricted editing mode feature. The option is used by the [`RestrictedEditingMode`](module_restricted-editing_restrictededitingmode-RestrictedEditingMode.md) feature.

```typescript
ClassicEditor
  .create( {
	restrictedEditing: {
	  allowedCommands: [ 'bold', 'link', 'unlink' ],
	  allowedAttributes: [ 'bold', 'linkHref' ]
	}
  } )
  .then( ... )
  .catch( ... );
```

See [all editor options](module_core_editor_editorconfig-EditorConfig.md).

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-restricted-editing/src/restrictededitingconfig.ts#L28)

<a id="properties">

## Properties

<a id="member-allowedAttributes">

### `allowedAttributes: Array<string>`

The text attribute names allowed when pasting content in inline non-restricted areas.

The default value is:

```typescript
const restrictedEditingConfig = {
  allowedAttributes: [ 'bold', 'italic', 'linkHref' ]
};
```

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-restricted-editing/src/restrictededitingconfig.ts#L66)

<a id="member-allowedCommands">

### `allowedCommands: Array<string>`

The command names allowed in inline non-restricted areas of the content.

Defines which feature commands should be enabled in the restricted editing mode. The commands used for typing and deleting text (`'input'`, `'delete'` and `'deleteForward'`) are allowed by the feature inside non-restricted regions and do not need to be defined.

**Note**: The restricted editing mode always allows to use the restricted mode navigation commands as well as `'undo'` and `'redo'` commands.

The default value is:

```typescript
const restrictedEditingConfig = {
  allowedCommands: [ 'bold', 'italic', 'link', 'unlink' ]
};
```

Only inline content inserting or editing commands are allowed in this setting. Block content commands such as `insertTable` or `enter` cannot be allowed via this setting, as they are not supported in the restricted editing mode.

To make a command always enabled (also outside non-restricted areas) use the [`enableCommand`](module_restricted-editing_restrictededitingmodeediting-RestrictedEditingModeEditing.md#function-enableCommand) method.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-restricted-editing/src/restrictededitingconfig.ts#L53)

---

Full index of the CKEditor 5 API reference: [llms.txt](llms.txt)
