Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Luke S. 5 posts 74 karma points
    Feb 21, 2020 @ 20:15
    Luke S.
    0

    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?

  • Luke S. 5 posts 74 karma points
    Mar 02, 2020 @ 19:41
    Luke S.
    0

    Can anyone else reproduce this, or is it just me that's having this issue?

  • Marc Deschenes 5 posts 76 karma points
    Feb 03, 2021 @ 20:08
    Marc Deschenes
    1

    ran into this as well.. late to the game, but if it helps anyone -

    This will output as you expect

    /**umb_name:Primary Button - Large*/
    a.btn.btn-primary btn-lg{
    
    }
    

    It seems past the second selector, it just outputs whatever is there, so I just removed the period (class selector). Output:

    <a class="btn btn-primary btn-lg">xyz</a>
    
  • Edgar Rasquin 326 posts 925 karma points
    Jul 27, 2022 @ 12:23
    Edgar Rasquin
    0

    Hi Marc,

    that works well in the frontend. But in the backend rteditor the button is not beeing formatted.

    Any ideas? Thanks

Please Sign in or register to post replies

Write your reply to:

Draft