How to exclude certain alignment options in your own preset?
Although I have not specified “right” and “justify”, they are still shown:
<code>imports:
- { resource: 'EXT:rte_ckeditor/Configuration/RTE/Processing.yaml' }
- { resource: 'EXT:rte_ckeditor/Configuration/RTE/Editor/Base.yaml' }
- { resource: 'EXT:rte_ckeditor/Configuration/RTE/Editor/Plugins.yaml' }
editor:
config:
alignment:
options:
- { name: 'left', className: 'text-left' }
- { name: 'center', className: 'text-center' }
toolbar:
items:
- bold
- italic
- alignment
</code>
<code>imports:
- { resource: 'EXT:rte_ckeditor/Configuration/RTE/Processing.yaml' }
- { resource: 'EXT:rte_ckeditor/Configuration/RTE/Editor/Base.yaml' }
- { resource: 'EXT:rte_ckeditor/Configuration/RTE/Editor/Plugins.yaml' }
editor:
config:
alignment:
options:
- { name: 'left', className: 'text-left' }
- { name: 'center', className: 'text-center' }
toolbar:
items:
- bold
- italic
- alignment
</code>
imports:
- { resource: 'EXT:rte_ckeditor/Configuration/RTE/Processing.yaml' }
- { resource: 'EXT:rte_ckeditor/Configuration/RTE/Editor/Base.yaml' }
- { resource: 'EXT:rte_ckeditor/Configuration/RTE/Editor/Plugins.yaml' }
editor:
config:
alignment:
options:
- { name: 'left', className: 'text-left' }
- { name: 'center', className: 'text-center' }
toolbar:
items:
- bold
- italic
- alignment