htmlArea RTE: justify after CTRL+A not working in Firefox
In rte edit area. If I use "ctrl+A" to select all words and click the button "align left , right , center" , it's not working.
It works ok in IE.
(issue imported from #M14333)
#2 Updated by Chris topher about 8 years ago
I just checked that with Firefox with TYPO3 4.3.3 and with current trunk. The behaviour is the same:
I have a text consisting of several p tags in a row, each with some text in it.
Ctrl+A marks the text correctly.
Rightclicking and using e.g. "Justify Right" displays the text in the RTE justified right, but only if the p tag did not have a special class for the alignment added to it before. Any paragraph, which had a class added to the p tag before (e.g. centered), is still displayed as before.
Also, when I toggle to view the HTML source, I see, that the classes which should have been added in the step above were not added to the p tags. None of them is there; instead the old classes are still present.
In the FE the text comes up without the classes which should have been added (but still with the old classes). = same as the HTML source I see when toggling the view in the RTE.
Ir does not matter if I use special classes to align the text. E.g. in page TSconfig:
RTE.default.buttons.left.useClass = linksbuendig
and so on for the others.
The problem is also there, if I do not set such properties.
It works correctly, if I don't mark any text but position the cursor inside one p tag and then add an alignment: It is added to the p tag correctly.
@ huangbo: That is what your bug report already should have looked like.
#3 Updated by bobo no-lastname-given about 8 years ago
@Christopher: Your test is right. If I use "RTE.default.buttons.left.useClass = linksbuendig". The class changed right when I position the cursor inside one p tag. But it's also not work after "Ctrl+A", the class is not changed. How to solve?
ps: It works ok in IE if I use "Ctrl+A".