Bug #53617
closedrtehtmlarea: not able to remove blockstyle classes in 6.2
100%
Description
I've updated from TYPO3 4.5 LTS to 6.2 beta1. As I discovered, I had to change some RTE settings to get rid of default blockstyle and textstyle classe.
With the following line I do this for textstyles:
RTE.default.buttons.textstyle.tags.span.allowedClasses = test
Explanation: I set a new value "test", which doesn't exist, so my textstyle list is empty.
I thought, that the following line does the same thing for blockstyles:
RTE.default.buttons.blockstyle.tags.div.allowedClasses = test
But this line does not have an effect. E.g. "justify left" of "frame with grey background" are still in my list.
Also
RTE.default.buttons.blockstyle.tags.all.allowedClasses = test
doesn't have an effect.
I'm not sure, if I've understood the docu http://docs.typo3.org/typo3cms/extensions/rtehtmlarea/latest/Configuration/PageTsconfig/interfaceConfiguration/Index.html correctly, but I think so. So I decided to report this behaviour as a bug...
Christian
Updated by Christian Clemens about 11 years ago
I tried to find a solution today again. What I found out:
RTE.default.buttons.blockstyle.tags.all.allowedClasses = test
With this line, I'm still able to see the block styles in the drop down list and I'm also able to choose one. But choosing has no effect, source code is not changed.
Example: if I choose "align-center", then the text block does not get the class.
In other words: I can turn off the possibilty to set the styles, but they are still visible. Don't know why...
Updated by Christian Clemens about 11 years ago
I'm also not able to add an own table class "full" and to delete the default classes "csc-frame-frame1" and "csc-frame-frame2" out of the block style drop down field in the table properties. I've tried the following code:
RTE.default.buttons.blockstyle.tags.table.allowedClasses = full RTE.default.FE.buttons.blockstyle.tags.table.allowedClasses = full RTE.default.proc.allowedClasses := addToList(full) RTE.default.proc.allowedClasses := removeFromList(csc-frame-frame1) RTE.default.FE.proc.allowedClasses := removeFromList(csc-frame-frame1) RTE.default.FE.proc.allowedClasses := addToList(full)
If I have understood docu correctly, the first line should overwrite all table classes. The meaning of the second line I don't really know...
I've also tried to add the class in the following line and to remove the default class "csc-frame-frame1", but without success.
So same thing as described below: for me it is not possible to remove the table default classes. A bug? Or missing know how?
Updated by Christian Clemens about 11 years ago
- % Done changed from 0 to 100
No bug - the solution is:
- If I do not define an own css file, standard file (?) of rte is taken. And in this file (?) the classes like "csc-frame-frame1" etc. are defined.
- To get rid of them, the following line has to be added in PageTSSetup:
RTE.default.contentCSS=path_to_own_css_file/file_name.css
That was very confusing for me, because it was not enough to remove the classes per PgaeTSSetup.
Sorry for this bug report.
Updated by Stanislas Rolland almost 11 years ago
- Status changed from New to Closed
- Assignee set to Stanislas Rolland