CK_Editor Konfiguration

In der ext_localconf.php der Extension die YAML-Konfigurationsdatei hinzufügen:

 

     $GLOBALS['TYPO3_CONF_VARS']['RTE']['Presets']['my_preset'] =  'EXT:my_extension/Configuration/RTE/MyPreset.yaml';

 

 

Die YAML-Datei anlegen (keine TAB-Zeichen erlaubt):

 

     # Import basic configuration 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" }  # Add configuration for the editor # For complete documentation see docs.ckeditor.com  editor:   config:     # Include custom CSS     contentsCss: "EXT:my_extension/Resources/Public/Css/rte.css" 

 

 

  stylesSet:   - { name: "Button Orange", element: "a", attributes: { class: "btn btn-orange"} }

 

 

im Page-TS die Konfiguration aktivieren:

 

   RTE {    default.preset = MyPreset }

 

TYPO3 Doku