RTE.default.buttons.blockstyle not configurable
In TYPO3 6.2.0 and 6.2.1 i configure the RTE like this
RTE.default.contentCSS = fileadmin/rte.css
showTagFreeClasses = 0
postfixLableWithClassName = 1
The Pull-Down-Box shows ever all classes in rte.css, independent of the settings for "showTagFreeClasses".
There is only one exception:
if i start editing a text and click on the Blockstyles-Pulldown bevor clicked somewhere in the textarea, the Pulldown shows the right list of classes. After a click in the textarea, all existing classes in rte.css are shown.
In 4.x this worked fine!
any "tags.div.allowedClasses = ..." has no effect for blockstyle
For RTE.default.buttons.textstyle everything works as expected. Here "showTagFreeClasses" and "allowedClasses" has the expected effect.
Updated by Stanislas Rolland over 9 years ago
- Status changed from Under Review to Accepted
- Target version set to next-patchlevel
I was able to reproduce this issue.
Two problems here:
1. BlockStyle and TextStyle plugins compete to load the same global classes configuration from PageTSconfig. However, this does not seem to be the root cause, since the behaviour remains erratic after fixing this.
2. Both plugins create an instance of HTMLArea.CSS.Parser. However, it seems that the object that contains the parsed classes of BlockStyle is reused (or re-applied?) and not re-initialized by the instance created by TextStyle. ExtJS bug?
After forcing the initialisation of the object in the class constructor, the problem is resolved... at least in all the tests I could make.