[TYPO3-rte] Block Style in RTE

Stanislas Rolland typo3 at sjbr.ca
Mon Aug 22 04:15:35 CEST 2011


Hi Orish,
>
> I have implemented two table custom classes(classA and classB) for RTE and
> they are working great if used one at a time. They are getting displayed in
> Block Style and I can use them while editing article and the css is applied
> fine in the frontend. However, I have problem when I use the two classes
> simultaneously without removing the first one. ie. if I use classA and then
> use classB without removing classA first. When I do so, I am even unable
> revert the changes without going in the Source mode and remove one of the
> class. But the strange thing is if I do reverse, ie. use classB and then
> classA, I could atleast remove classA and then classB using the option
> Remove Block Style from the dropdown.
>

You are using the float attribute in the value property of classA and 
classB.

The value property of the RTE.classes array is applied to the option of 
the style selector. Remove the value property, or remove the float 
attribute from the value property, or add property noShow = 1.

I think the style selector should then behave correctly.

Stanislas


More information about the TYPO3-project-rte mailing list