[wp-trac] [WordPress Trac] #16695: quicktags needs some refactoring
WordPress Trac
wp-trac at lists.automattic.com
Mon Apr 11 21:19:29 UTC 2011
#16695: quicktags needs some refactoring
----------------------------------------------+----------------------------
Reporter: garyc40 | Owner: scribu
Type: enhancement | Status: reviewing
Priority: normal | Milestone: Awaiting
Component: Editor | Review
Severity: normal | Version: 3.1
Keywords: has-patch dev-feedback 3.2-early | Resolution:
----------------------------------------------+----------------------------
Comment (by azaozz):
This is an interesting project and the patches look good. Although I don't
think it only needs "some refactoring". IMHO it needs full rewriting.
For example it would be nice to have init options similar to the way
TinyMCE works, i.e. an init object that overrides the internal defaults:
instances can be added to several textareas by ID (or even CSS class),
buttons can be enabled|disabled|rearranged, the toolbar can start hidden,
etc. Also a clear documented API for extending the editor (well, adding
buttons), maybe build-in resizing of the textareas, some basic CSS
overrides from the JS like font and background color, font face, line
spacing, etc.
I'm even debating the possibility of just adding this functionality into a
TinyMCE plugin for the main WP editor and keeping quicktags.js for places
where we need limited HTML code.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16695#comment:17>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list