Opened 14 years ago
Closed 14 years ago
#17523 closed enhancement (fixed)
Namespace events in common.js for tabs in textareas
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | 3.2 | Priority: | normal |
Severity: | normal | Version: | 3.2 |
Component: | Administration | Keywords: | has-patch |
Focuses: | Cc: |
Description
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!
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
Patch to add namespace to tab key events