Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
How can I add span tags to my editor?
Thanks
How can I add span tags to my editor?
Thanks
Comments
Comment #1
dczepierga CreditAttribution: dczepierga commentedPls give some more info what'd u need...
Comment #2
jdln CreditAttribution: jdln commentedI need to be able to add span tags around text. I can add divs, but not spans.
Thanks
Comment #3
dczepierga CreditAttribution: dczepierga commentedSry, but it's not possible. U can wrap text automatically only with "div" or "p".
Greetings
Comment #4
jdln CreditAttribution: jdln commentedIm a little confused by what you mean by 'automatically'. Can you manually add span tags, but with the editor UI?
Thanks
Comment #5
jcisio CreditAttribution: jcisio commentedOr use your custom styles, something as below:
You can use directly with your Format selectbox with that. Or write your own button plugin.
Comment #6
jdln CreditAttribution: jdln commentedThanks, ill look into this.