[TYPO3-rte] RTE does not store soft-hyphens and own class
bernd wilke
t3ng at bernd-wilke.net
Thu Nov 15 14:12:13 CET 2012
I did asked in t3.english and german list and got no answer :-(
maybe anyone here can answer my question:
I want editors to insert soft-hyphens into the text and use the class
smalltext.
as we use TYPO3 4.7 the (new?) RTE is also Version 4.7
my configuration so far (page TS):
------------------------------------------
## RTE configuration
RTE {
default {
contentCSS = fileadmin/src/css/rte.css
}
classes {
smalltext {
name = small
value = smalltext
}
}
default {
showButtons := addToList(insertsofthyphen)
hideButtons := addToList(subscript,superscript,indent,outdent)
hidePStyleItems =
article,aside,footer,header,h1,h5,h6,address,nav,blockquote,section
enableWordClean = 1
defaultContentLanguage = de
rteResize = 1
buttons.inserttag.denyTags := addToList(h1,font,center)
buttons.blockstyle {
tags.all.allowedClasses := addToList(smalltext)
tags.p.allowedClasses := addToList(smalltext)
showTagFreeClasses = 1
}
buttons.textstyle {
tags.all.allowedClasses := addToList(smalltext)
showTagFreeClasses = 1
}
}
proc {
allowedClasses := addToList(smalltext)
allowTags :=
removeFromList(aside,footer,header,h1,h5,h6,address,nav,blockquote)
}
}
RTE.default.FE < RTE.default
RTE.default.FE.userElements >
RTE.default.FE.userLinks >
------------------------------------------
rte.css:
------------------------------------------
.smalltext { font-size:10px; }
p.smalltext { font-size:10px; }
div.smalltext { font-size:10px; }
span.smalltext { font-size:10px; }
------------------------------------------
I'm wondering as the hyphen (­) and the class are inserted in BE,
which can be seen immediately in BE.
But as soon as I store the text the hyphens and smalltext-class are removed.
store = 'toggle text mode' or store (and show page in FE)
bernd
--
http://www.pi-phi.de/cheatsheet.html
More information about the TYPO3-project-rte
mailing list