[wp-trac] [WordPress Trac] #20076: add_editor_style() should support plugins as well
WordPress Trac
wp-trac at lists.automattic.com
Mon Feb 20 03:13:33 UTC 2012
#20076: add_editor_style() should support plugins as well
-------------------------+------------------------------
Reporter: ericlewis | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Resolution:
Keywords: close |
-------------------------+------------------------------
Changes (by mikeschinkel):
* cc: mikeschinkel@… (added)
Comment:
Replying to [comment:1 azaozz]:
> Frankly I still don't see a point in having add_editor_style() at all.
The whole functionality (wouldn't call it API) of add_editor_style(), the
`$editor_styles` global and the code block in wp_editor that parses it was
added with the assumption that theme authors don't know how to use
filters.
>
> However plugin authors '''know''' how to use filters, so using 'mce_css'
is far better.
-1 to that.
Developers may know how to ''use'' filters, but developers are really no
better at '''''finding''''' filters that are named obscurely. `'mce_css'`
is probably one of the worst named hooks in WordPress in you care anything
about making hook discovery easier.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20076#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list