[wp-trac] [WordPress Trac] #17144: Editor API enhancement
WordPress Trac
wp-trac at lists.automattic.com
Thu Aug 18 16:21:20 UTC 2011
#17144: Editor API enhancement
-------------------------+------------------
Reporter: azaozz | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 3.3
Component: Editor | Version:
Severity: normal | Resolution:
Keywords: |
-------------------------+------------------
Comment (by azaozz):
Been thinking whether the deprecation of `the_editor()` is warranted (the
patch above "undeprecates" it). It seems it's on the borderline: on one
hand the changes to the API are too great not to deprecate it. Actually we
didn't have a workable API before, just a bunch of PHP and JS functions
that needed some hacks to get them working.
On the other hand `the_editor()` can still be used similarly to how it was
used before, but with the new API it will also enqueue all JS and CSS
needed for a working multi-instance editor.
I've also been working on a compatibility class (to be used by plugins)
that brings the new API to WP 3.0 - 3.2. It should land in the plugins
directory in couple of weeks.
In that terms it seems the scales tip in favor of deprecating the old
functions.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17144#comment:51>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list