Skip to content
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions docs/content_management/rich_text/extend_online_editor.md
Original file line number Diff line number Diff line change
Expand Up @@ -464,3 +464,19 @@ ibexa.addConfig('richText.CKEditor.extraConfig', { specialCharacters: { order: [
```

![CKEditor Special characters: Arrows category on top of the character filter](ckeditor-special-characters_arrows-on-top.png)

You can also use custom functions to modify the plugin configuration. The following example adds two ways to add a non-breaking space character:
```js
function SpecialCharactersNbsp( editor ) {
// add non-breaking space to the SpecialCharacters plugin
editor.plugins.get( 'SpecialCharacters' ).addItems( 'Text', [
{ title: 'Non-Breaking Space', character: '\u00a0' }
] );
// add a keyboard shortcut
editor.keystrokes.set( 'Ctrl+space', ( key, stop ) => {
editor.execute( 'input', { text: '\u00a0' } );
stop();
} );
}
ibexa.addConfig('richText.CKEditor.extraPlugins', [ SpecialCharacters, SpecialCharactersEssentials, SpecialCharactersNbsp ], true);
```