• Resolved iqueue

    (@iqueue)


    I really appreciate the EditorsKit plugin! Thank you!

    I wonder though, for the more advanced of us out here (that can write CSS/JS/HTML etc), would it be possible to add a new extension to the paragraph block (and possibly others) so that one could select some text and apply one or more CSS classes to it and a choice of how to wrap it (e.g. span, div, etc.)?

    I would like to ‘badge’ some highlighted text with a background, border, and radius. I currently do this in a ‘classic editor’ block and edit the underlying html to wrap text in a <span class=”my-class-name”> and then apply either page specific or parent block CSS to style the span. its tedious, but works…but would be much easier to simply select text and be offered to add one or more CSS classes to the selected text.

    A further option would be to apply an inline style to it or to select from a set of pre-made styles.

    Maybe this capability already exists somewhere and i just don’t know it???

    Thanks again!

Viewing 1 replies (of 1 total)
  • Plugin Author Munir Kamal

    (@munirkamal)

    I appreciate your suggestion, but modifying the block markup can be risky and may cause blocks to break. However, I have taken note of your suggestion and will explore potential ways to implement it.

Viewing 1 replies (of 1 total)
  • The topic ‘Custom CSS or class to selected text’ is closed to new replies.