When using this module previously, I noticed that the editor does not produce valid strict XHTML code - it uses <u> tags and <strike> tags - both of which are not valid XHTML. Is this a setting that the module could somehow configure to ensure that valid code is produced?

Comments

danny_joris’s picture

I was about to search this in the issue queue and then saw your issue in the 'last issues' sidebar. I'm wondering about this as well...

wwalc’s picture

Status: Active » Fixed

Sorry for late reply, you can change it in ckeditor.config.js, see CKEditor documentation:

http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html#.core...

jaypan’s picture

Thanks, I just tried that out and it worked.

If anyone else comes across this, the file is in the ckeditor root folder (if you installed the module in the standard location, it will be at: sites/all/modules/ckeditor/ckeditor.config.js)

At the very end, before the closing }, I added:

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'}

Note: At the very least you will need to clear your browser cache (ctrl + F5, command + F5 on a mac), and if you have javascript caching turned on in Drupal, you will need to clear that cache as well before your changes take effect.

Status: Fixed » Closed (fixed)

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