[wp-hackers] Inline styles and TinyMCE

Lynne Pope lynne.pope at gmail.com
Thu Sep 10 04:02:24 UTC 2009


2009/9/10 scribu <scribu at gmail.com>

> A new ticket on trac contends that TinyMCE should use predefined classes
> instead of inline styles: #10753<
> http://core.trac.wordpress.org/ticket/10753>
>
> The main drawback is that it would require themes to add these predefined
> styles to their stylesheet, beside the classical .alignleft, .aligncenter
> and .alignright
>
> This is my proposed solution:
>
> Instead of relying on each theme developer, make a default.css file and add
> it through 'wp_head'.
>
> - fixes the inline styles in TinyMCE
> - potentially fixes inline styles generated by [gallery]
> - themers can disable it if they wish
>
> What do you think?
>

+1 for this - good idea!
In my theme development I'd disable it in wp_head and either import it in
styles.css or include the necessary styling directly with the rest of the
styling.

The ability to easily remove it from wp_head is important.

Lynne


More information about the wp-hackers mailing list