[wp-trac] [WordPress Trac] #17523: Namespace events in common.js for tabs in textareas
WordPress Trac
wp-trac at lists.automattic.com
Fri May 20 18:16:53 UTC 2011
#17523: Namespace events in common.js for tabs in textareas
-------------------------+-----------------------------
Reporter: wjbryant | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version: 3.2
Severity: normal | Keywords:
-------------------------+-----------------------------
In common.js, event handlers are assigned to the textarea in the theme and
plugin editors to insert tab characters when the tab key is pressed. It
would be nice if these events were "namespaced" so they could be easily
targeted for unbinding. See [http://docs.jquery.com/Namespaced_Events].
In my Tab Override plugin, I have to resort to analyzing the code for each
event handler to determine which ones are safe to remove. This is not very
reliable.
I attached an example that uses wpTabKey as the event namespace. It would
be great if this could make it into 3.2!
Thanks!
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17523>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list