Important: #85361 - EXT:rte_ckeditor - re-add the soft hyphen button¶
See Issue #85361
With the switch from htmlArea to CKEditor the soft hyphen button was gone. This functionality is now re-added as custom CKEditor plugin.
It is loaded like each other existing CKEditor plugin in the TYPO3 core via
EXT:rte_ckeditor/Configuration/RTE/Editor/Plugins.yaml. It's automatically loaded in
the RTE presets "default" and "full". The shortcut
- for adding a soft hyphen works
without showing the button in the CKEditor button bar.
By using the shipped RTE presets "default" or "full", the functionality and the toolbar button is automatically added to CKEditor toolbar. This helps the editor immensely to create better content for the responsive web these days.
How to activate the functionality in a custom RTE preset¶
The functionality is automatically added if you are importing
EXT:rte_ckeditor/Configuration/RTE/Editor/Plugins.yaml in your custom RTE preset. If your
custom RTE preset can't rely on that file, you can explicitly import this plugin as shown:
How to add the button in a custom RTE preset¶
The button with the buttonName
softHyphen of the plugin is assigned to a toolbarGroup named
insertcharacters. Based on how you like to configure the toolbar in your RTE preset you must either
use the toolbarGroup or the buttonName to display the button at the desired location in the toolbar.
Please take look into the supplied RTE presets to see working examples:
More information can be found in the official CKEditor 4 documentation (toolbar concepts): - https://docs.ckeditor.com/ckeditor4/latest/guide/dev_toolbarconcepts.html