Skip to content

Instantly share code, notes, and snippets.

@christophlehmann
Created September 7, 2017 10:37
Show Gist options
  • Save christophlehmann/7aad1908085f106541da93d8112e6069 to your computer and use it in GitHub Desktop.
Save christophlehmann/7aad1908085f106541da93d8112e6069 to your computer and use it in GitHub Desktop.
Custom CKEditor TYPO3 configuration
# Load default processing options
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 http://docs.ckeditor.com/#!/api/CKEDITOR.config
editor:
config:
contentsCss: EXT:my_site/Resources/Public/Css/extHtmlArea.css
format_tags: "p;address;h2;h3"
stylesSet:
- { name: "Kleinere Schrift", element: "p", attributes: { 'class': 'small' }}
- { name: "Mobil nicht anzeigen", element: "p", attributes: { 'class': 'hidden-phone' }}
toolbarGroups:
- { name: styles, groups: [ styles, format, cleanup ] }
- { name: basicstyles, groups: [ basicstyles ] }
- { name: paragraph, groups: [ list, indent, blocks, align ] }
- { name: links, groups: [ links ] }
- { name: clipboard, groups: [ clipboard, undo ] }
- { name: editing, groups: [ spellchecker ] }
- { name: insert, groups: [ insert ] }
- { name: tools, groups: [ specialchar ] }
- { name: document, groups: [ mode ] }
justifyClasses:
- align-left
- align-center
- align-right
extraPlugins:
- justify
removePlugins:
- image
removeButtons:
- Anchor
- Table
- JustifyBlock
- Blockquote
# https://www.thomaskieslich.de/blog/135-links-im-ckeditor-mit-eigenen-css-klassen/
classes.:
button.:
name: Button Link
buttons.:
link.:
relAttribute.:
enabled: true
properties.:
class.:
allowedClasses: 'button'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment