I would like to have a large bootstrap button as one of the options in the format dropdown in the RTE, which would have the following classes: btn btn-primary btn-lg. I have the style in the stylesheet I'm using for the RTE set as 'a.btn.btn-primary.btn-lg'. However, when I apply that style to some text, the classes get added as: btn btn-primary.btn-lg - note the period in between the last classes instead of a space. I have a different style without the btn-lg class, and that works fine. Is there some sort of limitation as to how many classes those format dropdown styles can have, or is this a bug?
RTE formats style with more than 2 classes
I would like to have a large bootstrap button as one of the options in the format dropdown in the RTE, which would have the following classes: btn btn-primary btn-lg. I have the style in the stylesheet I'm using for the RTE set as 'a.btn.btn-primary.btn-lg'. However, when I apply that style to some text, the classes get added as: btn btn-primary.btn-lg - note the period in between the last classes instead of a space. I have a different style without the btn-lg class, and that works fine. Is there some sort of limitation as to how many classes those format dropdown styles can have, or is this a bug?
Can anyone else reproduce this, or is it just me that's having this issue?
ran into this as well.. late to the game, but if it helps anyone -
This will output as you expect
It seems past the second selector, it just outputs whatever is there, so I just removed the period (class selector). Output:
Hi Marc,
that works well in the frontend. But in the backend rteditor the button is not beeing formatted.
Any ideas? Thanks
is working on a reply...