I want to configure the underline button to be a span tag with a class of underline, rather than a <u> tag. I would also like to configure the strikethrough to be a span tag with a class of strikethrough, rather than a <strike> tag. Can someone point me in the direction of how this can be done? Or can this even be done?
Thu, 01/14/2010 - 03:41
#1

Re: reconfiguring HTML to produce semantic tags
Re: reconfiguring HTML to produce semantic tags
Re: reconfiguring HTML to produce semantic tags
Does anyone actually have a tutorial or an actual way to do this? It's a pretty big thing I think - this editor seems pretty cool, but there are a number of other editors out there that produce valid code, so if ckeditor wants to keep up (and surpass) the competition, it's something that is going to have to be fixed.
Re: reconfiguring HTML to produce semantic tags
Re: reconfiguring HTML to produce semantic tags
Re: reconfiguring HTML to produce semantic tags
Re: reconfiguring HTML to produce semantic tags
http://www.liferay.com
Re: reconfiguring HTML to produce semantic tags
Re: reconfiguring HTML to produce semantic tags
Re: reconfiguring HTML to produce semantic tags
CKEDITOR.config.coreStyles_strike = { element : 'span', attributes : {'style': 'text-decoration:line-through'}, overrides : 'strike' }; CKEDITOR.config.coreStyles_underline = { element : 'span', attributes : {'style': 'text-decoration:underline'}};This rewrites the output of the underline and strike tags.