Bug #18580
closed
contentCSS-file css classes for paragraphs not shown in dropdown list "formatblock"
Added by Michael Klckner over 16 years ago.
Updated over 16 years ago.
Description
CSS-classes defined in a css-file configured with parameter "contentCSS" are keept in JS/HTML-Code but are not shown in the drop-down list "formatblock". Function buildJSParagraphsConfig() line 1183 in file class.tx_rtehtmlarea_base.php does only recognize class-variable $this->defaultParagraphs, thus ignoring user configured css-classes.
Maybe I missunderstood the purpose of function buildJSParagraphsConfig(), which merely is to generate the default paragraps. But then there should be another function to add the css-classes for paragraphs defined in a css-file configured with parameter "contentCSS" into the drop-down list "formatblock".
(issue imported from #M8046)
Most likely this is not a bug. There is a TS-Option called
'RTE.default.classesParagraph'
If this is set (which is done by selecting typical configuration in EM!) the classes from the File is filtered with this list
this is the setting from typical configuration:
RTE.default.classesParagraph(
align-left, align-center, align-right,
csc-frame-frame1, csc-frame-frame2
)
for most easy usage just unset this setting
RTE.default.classesParagraph>
Can you please confirm it is working when unsetting this parameter?
The list formatblock shows various types of blocks. Classes for paragraphs and other block elements should appear in the blockstyle list, not in the formatblock list.
@Stanislas: so you at least confirm this is not truely a bug but a misunderstanding? Can anything easy be done to help the user?
p.foobar will still IMO only show up in formatblock if 'foobar' is contained in RTE.default.classesParagraph (if this is set to anything but emtpy). This often leads to confusion.
All I am saying is that RTE.default.classesParagraph has to do with blockstyle. It has nothing to do with formatblock.
I don't know what version we are talking about here. In TYPO3 4.2, RTE.default.buttons.blockstyle.tags.div.allowedClasses is a synonym of property RTE.default.classesParagraph and overrides it, if present.
Thank you all for clarifying the matter.
My css-file was fine, my TS-Config was ok, i just misunderstood dokumentation.
Now i get my css-classes shown as well in textstyle as in blockstyle behaving as expected.
Thank you again.
Yours Michael Klöckner
p.s. I am using Typo3 3.8 with htmlArea RTE v 1.4.4
closed as reporter confirmed it is not a bug
Also available in: Atom
PDF