CKEditor doesn't apply inline styles to links

Posted by jomanlk on Stack Overflow See other posts from Stack Overflow or by jomanlk
Published on 2010-06-10T09:34:48Z Indexed on 2010/06/11 5:22 UTC
Read the original article Hit count: 269

Filed under:
|
|
|

I'm using ckeditor version 3 as a text editor to create markup to be sent through email. This means that I have to have all the styles inline and anything that needs to be styled will definitely need the style applied.

I'm currently using addStylesSet to generate custom styles that can be applied to elements. The problem I have is that although this works on most elements, styles don't seem to be applied to <a> <ol> <ul> and <li>

I really need to be able to apply inline styles to these elements as well. I've been looking at the examples on the ckeditor site, but even they just seem to be wrapping a <span> around the link.

Is there anyway I can apply inline styles to <a> tags or failing that, can I just give ckeditor a bunch of classes that can be applied to any tag (Like TinyMCE does with it's link to an external css file)? so that I can at least do a textreplace on them to get the styles inline?

I haven't pasted any code here because it's exactly the same as what's been done on the ckeditor site.

© Stack Overflow or respective owner

Related posts about css

Related posts about style