[wp-hackers] Inline styles and TinyMCE

scribu scribu at gmail.com
Wed Sep 9 23:31:01 UTC 2009


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?


-- 
http://scribu.net


More information about the wp-hackers mailing list