How can I add span tags to my editor?
Thanks

Comments

dczepierga’s picture

Status: Active » Postponed (maintainer needs more info)

Pls give some more info what'd u need...

jdln’s picture

I need to be able to add span tags around text. I can add divs, but not spans.
Thanks

dczepierga’s picture

Sry, but it's not possible. U can wrap text automatically only with "div" or "p".

Greetings

jdln’s picture

Im a little confused by what you mean by 'automatically'. Can you manually add span tags, but with the editor UI?
Thanks

jcisio’s picture

Or use your custom styles, something as below:

CKEDITOR.addStylesSet( 'mystyles',
[
	{ name : 'my span', element : 'span', styles : { 'background-color' : 'Yellow' } }
]);

You can use directly with your Format selectbox with that. Or write your own button plugin.

jdln’s picture

Status: Postponed (maintainer needs more info) » Fixed

Thanks, ill look into this.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.