# SlashCommandEditorConfig

interface

The configuration of the slash command feature.

Read more about [configuring the slash command feature](../features/slash-commands.md#configuration).

```typescript
ClassicEditor
			.create( {
				slashCommand: ... // Slash command feature options.
			} )
			.then( ... )
			.catch( ... );
```

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

<a id="properties">

## Properties

<a id="member-dropdownLimit">

### `dropdownLimit: number`

The maximum number of commands displayed in the dropdown list of slash commands.

```typescript
ClassicEditor
			.create( {
				plugins: [ SlashCommand, ... ],
				slashCommand: {
					dropdownLimit: 4
					// More of editor configuration.
					// ...
				}
			} )
			.then( ... )
			.catch( ... );
```

<a id="member-extraCommands">

### `extraCommands: Array<SlashCommandDefinition>`

Additional commands to be added to the [list of defaults](module_slash-command_slashcommandconfig-SlashCommandConfig.md#function-getDefaultCommands) supported by the slash command feature. It allows the feature to work with third-party commands and make them appear in the user interface upon writing the slash ("/") character.

```typescript
ClassicEditor
			.create( {
				plugins: [ SlashCommand, ... ],
				slashCommand: {
					extraCommands: [
						{
							id: 'bold',
							commandName: 'bold',
							title: 'Bold',
							// ...
						},
						// ...
					]
					// ...
				}
			} )
			.then( ... )
			.catch( ... );
```

<a id="member-removeCommands">

### `removeCommands: Array<string>`

The list of commands to be removed from the default command list. Commands specified by this configuration will not appear in the user interface upon writing the slash ("/") character.

* Each entry must be a unique name of a command registered in the [editor's command collection](module_core_editor_editor-Editor.md#member-commands).
* Check out the list of the [default commands](module_slash-command_slashcommandconfig-SlashCommandConfig.md#function-getDefaultCommands) supported by the slash command feature to learn which commands can be removed.

```typescript
ClassicEditor
			.create( {
				plugins: [ SlashCommand, ... ],
				slashCommand: {
					removeCommands: [ 'heading', 'paragraph', ... ]
					// ...
				}
			} )
			.then( ... )
			.catch( ... );
```

---

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