TinyMCE: Automatic add style attribute on link creation

839 Views Asked by At

In TinyMCE, I need to add a in-line style attribute on link creation. The reason is that Google Mail doesn't support tags in a newsletter.

One solution can be "advlink". But who would explain to our user...that he must add css code in a new link...bad solution.

There must be a simpler, user-friendly way, but i can't find it. Is there an option that i can tell the plugin to add automatic style-attributes to a link?

//EDIT Ok, i think another solution can be, if i can add anchor to 'style_formats'. But an anchor is not supported in 'style_formats'...someone has an idea?

1

There are 1 best solutions below

4
On

You may write an own plugin which adds the inline style element to links.

An easier approch is to put the necessary code into the setup config paramter.