Skip to content

Instantly share code, notes, and snippets.

@markhowellsmead
Created April 15, 2014 13:02
Show Gist options
  • Save markhowellsmead/10730690 to your computer and use it in GitHub Desktop.
Save markhowellsmead/10730690 to your computer and use it in GitHub Desktop.
TYPO3: Add custom blockstyle to RTE
# Define specific block style for the RTE editor in TYPO3 v6.1.7+
# Probably works in older v6 versions, but not tested
# Add the following to TS config on the root page of your site
# and add applicable CSS rules to e.g. fileadmin/templates/unia2014/Resources/Public/css/RTE.css
# to make the formatting work in the BE.
# (You will need to add the CSS to your FE CSS too.)
# [email protected] - 04/2014 - Free use, no credit required
RTE.classes{
h4 {
name = LLL:EXT:frp_contentcustomizer/Resources/Private/Language/locallang.xlf:tt_content-header-h4
# OR: name = My new block style
value = h4
}
}
RTE.default {
ignoreMainStyleOverride = 1
useCSS = 1
showTagFreeClasses = 1
contentCSS = fileadmin/templates/unia2014/Resources/Public/css/RTE.css
proc.allowedClasses = h4
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment