# Special characters

The special characters feature lets you insert **mathematical operators**, **currency symbols**, **punctuation**, **graphic symbols** (such as arrows or bullets), or Unicode letters typically not accessible from the keyboard (such as **umlauts** or **other diacritics**).

> **Unlock this feature with selected CKEditor Plans**
>
> Try all premium features – no credit card needed.
>
> [Sign up for a free trial ](https://portal.ckeditor.com/checkout?plan=free)[Select a Plan](https://ckeditor.com/pricing/)

<a id="demo">

## Demo

Use the special characters toolbar button in the editor below to open a [configurable](#configuration) panel with a table of selectable special characters.

<!-- AI-AGENT-NOTE: An interactive demo is embedded here but is not represented in this Markdown file. If you need to see it in action, open this page in a browser (e.g. via a browser-automation MCP like Chrome DevTools or Playwright), or let the user know a live demo is available on this page. -->

This demo presents a limited set of features. Visit the [feature-rich editor example](../examples/builds-custom/full-featured-editor.md) to see more in action.

<a id="installation">

## Installation

After [installing the editor](../getting-started/installation/cloud/quick-start.md), add the feature to your plugin list and toolbar configuration:

**NPM**

```js
// Core plugin provides the API for the management of special characters and their categories.
// The other provide a basic set of special characters.
import { ClassicEditor, SpecialCharacters, SpecialCharactersEssentials } from 'ckeditor5';

ClassicEditor
	.create( {
		licenseKey: '<YOUR_LICENSE_KEY>', // Or 'GPL'.
		plugins: [ SpecialCharacters, SpecialCharactersEssentials, /* ... */ ],
		toolbar: [ 'specialCharacters', /* ... */ ],
		specialCharacters: {
			// Configuration.
		}
	} )
	.then( /* ... */ )
	.catch( /* ... */ );
```

**CDN**

```js
// Core plugin provides the API for the management of special characters and their categories.
// The other provide a basic set of special characters.
const { ClassicEditor, SpecialCharacters, SpecialCharactersEssentials } = CKEDITOR;

ClassicEditor
	.create( {
		licenseKey: '<YOUR_LICENSE_KEY>',
		plugins: [ SpecialCharacters, SpecialCharactersEssentials, /* ... */ ],
		toolbar: [ 'specialCharacters', /* ... */ ],
		specialCharacters: {
			// Configuration.
		}
	} )
	.then( /* ... */ )
	.catch( /* ... */ );
```

<a id="configuration">

## Configuration

By default, a few categories of special characters have been defined. You can easily customize the special characters available in your WYSIWYG editor installation by adding new categories, extending the existing ones, or removing them altogether.

<a id="adding-a-new-category">

### Adding a new category

You can define a new special characters category using the [`SpecialCharacters#addItems()`](../api/module_special-characters_specialcharacters-SpecialCharacters.md#function-addItems) function.

For example, the following plugin adds the “Emoji” category to the special characters dropdown.

```js
function SpecialCharactersEmoji( editor ) {
	editor.plugins.get( 'SpecialCharacters' ).addItems( 'Emoji', [
		{ title: 'smiley face', character: '😊' },
		{ title: 'rocket', character: '🚀' },
		{ title: 'wind blowing face', character: '🌬️' },
		{ title: 'floppy disk', character: '💾' },
		{ title: 'heart', character: '❤️' }
	], { label: 'Emoticons' } );
}

ClassicEditor
	.create( {
		// ... Other configuration options ...
		plugins: [
			SpecialCharacters, SpecialCharactersEssentials, SpecialCharactersEmoji,
		],
	} )
	.then( /* ... */ )
	.catch( /* ... */ );
```

After adding the above plugin to the editor configuration, the new category will become available in the special characters dropdown.

> **Note**
>
> The title of a special character must be unique across the entire special characters set.

> **Note**
>
> The third argument of the [`SpecialCharacters#addItems()`](../api/module_special-characters_specialcharacters-SpecialCharacters.md#function-addItems) method is optional. You can use it to specify a label displayed as a category name. It is useful when your editor uses a language other than English. Check out the [UI language guide](../getting-started/setup/ui-language.md) to learn more.

Below you can see a demo based on the example shown above. Use the special characters toolbar button and then select “Emoticons” from the dropdown. This will let you insert an emoji into the content.

<!-- AI-AGENT-NOTE: An interactive demo is embedded here but is not represented in this Markdown file. If you need to see it in action, open this page in a browser (e.g. via a browser-automation MCP like Chrome DevTools or Playwright), or let the user know a live demo is available on this page. -->

> **Note**
>
> You may also check out the ready-to-use [Emoji feature](emoji.md) in order to quickly insert desired emoji into the document.

<a id="adding-characters-to-an-existing-category">

### Adding characters to an existing category

By using the [`SpecialCharacters#addItems()`](../api/module_special-characters_specialcharacters-SpecialCharacters.md#function-addItems) function you can also add new special characters to an existing category.

```js
function SpecialCharactersExtended( editor ) {
	editor.plugins.get( 'SpecialCharacters' ).addItems( 'Mathematical', [
		{ title: 'alpha', character: 'α' },
		{ title: 'beta', character: 'β' },
		{ title: 'gamma', character: 'γ' }
	] );
}

ClassicEditor
	.create( {
		// ... Other configuration options ...
		plugins: [
			SpecialCharacters, SpecialCharactersEssentials, SpecialCharactersExtended,
		],
	} )
	.then( /* ... */ )
	.catch( /* ... */ );
```

> **Note**
>
> The title of a special character must be unique across the entire special characters set.

Below you can see a demo based on the example shown above. Use the special characters toolbar button and then select “Mathematical” from the dropdown. You will see that the category now contains the additional Greek letters introduced by the configuration above.

<!-- AI-AGENT-NOTE: An interactive demo is embedded here but is not represented in this Markdown file. If you need to see it in action, open this page in a browser (e.g. via a browser-automation MCP like Chrome DevTools or Playwright), or let the user know a live demo is available on this page. -->

<a id="removing-categories">

### Removing categories

The special characters feature exposes each category as a separate plugin. While the [`SpecialCharactersEssentials`](../api/module_special-characters_specialcharactersessentials-SpecialCharactersEssentials.md) plugin can be used to conveniently include all of them, you can customize the category list by adding individual plugins with particular categories.

By default, the `@ckeditor/ckeditor5-special-characters` package provides special characters grouped into the following categories:

* [`SpecialCharactersArrows`](../api/module_special-characters_specialcharactersarrows-SpecialCharactersArrows.md) – Arrows special characters.
* [`SpecialCharactersCurrency`](../api/module_special-characters_specialcharacterscurrency-SpecialCharactersCurrency.md) – Currency special characters.
* [`SpecialCharactersLatin`](../api/module_special-characters_specialcharacterslatin-SpecialCharactersLatin.md) – Latin special characters.
* [`SpecialCharactersMathematical`](../api/module_special-characters_specialcharactersmathematical-SpecialCharactersMathematical.md) – Mathematical special characters.
* [`SpecialCharactersText`](../api/module_special-characters_specialcharacterstext-SpecialCharactersText.md) – Text special characters.
* [`SpecialCharactersEssentials`](../api/module_special-characters_specialcharactersessentials-SpecialCharactersEssentials.md) – Combines the plugins listed above.

For example, you can limit the categories to “Mathematical” and “Currency” only by picking the [`SpecialCharactersMathematical`](../api/module_special-characters_specialcharactersmathematical-SpecialCharactersMathematical.md) and [`SpecialCharactersCurrency`](../api/module_special-characters_specialcharacterscurrency-SpecialCharactersCurrency.md) plugins, like so:

**NPM**

```js
import { ClassicEditor, SpecialCharacters, SpecialCharactersCurrency, SpecialCharactersMathematical } from 'ckeditor5';

ClassicEditor
	.create( {
		// ... Other configuration options ...
		plugins: [
			SpecialCharacters, SpecialCharactersCurrency, SpecialCharactersMathematical,
		],
	} )
	.then( /* ... */ )
	.catch( /* ... */ );
```

**CDN**

```js
const { ClassicEditor, SpecialCharacters, SpecialCharactersCurrency, SpecialCharactersMathematical } = CKEDITOR;

ClassicEditor
	.create( {
		// ... Other configuration options ...
		plugins: [
			SpecialCharacters, SpecialCharactersCurrency, SpecialCharactersMathematical,
		],
	} )
	.then( /* ... */ )
	.catch( /* ... */ );
```

Below you can see a demo based on the example shown above. After clicking the special characters toolbar button , you can see that it contains fewer categories compared to the other editors on this page.

<!-- AI-AGENT-NOTE: An interactive demo is embedded here but is not represented in this Markdown file. If you need to see it in action, open this page in a browser (e.g. via a browser-automation MCP like Chrome DevTools or Playwright), or let the user know a live demo is available on this page. -->

<a id="ordering-categories">

### Ordering categories

The order of categories in the UI is determined by the order in which they were registered. However, depending on the context in which you use the editor, you might want to change this order, to make it easier to access frequently used characters.

The categories order can be customized using the [`order`](../api/module_special-characters_specialcharactersconfig-SpecialCharactersConfig.md#member-order) array.

```js
ClassicEditor
	.create( {
		// ... Other configuration options ...
		plugins: [ SpecialCharacters, SpecialCharactersEssentials, ... ],
		specialCharacters: {
			order: [
				'Text',
				'Latin',
				'Mathematical',
				'Currency',
				'Arrows'
			]
		}
	} )
	.then( /* ... */ )
	.catch( /* ... */ );
```

<a id="common-api">

## Common API

The [`SpecialCharacters`](../api/module_special-characters_specialcharacters-SpecialCharacters.md) plugin registers the UI button component (`'specialCharacters'`).

> **Note**
>
> We recommend using the official [CKEditor 5 inspector](../framework/development-tools/inspector.md) for development and debugging. It will give you tons of useful information about the state of the editor such as internal data structures, selection, commands, and many more.

<a id="contribute">

## Contribute

The source code of the feature is available at GitHub in <https://github.com/ckeditor/ckeditor5/tree/master/packages/ckeditor5-special-characters>.

---

Full index of the CKEditor 5 documentation: [llms.txt](../../llms.txt)
