Ticket #597 (closed defect: fixed)
Action handler of self defined dropdowns
| Reported by: | wgallo@… | Owned by: | gogo |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.0 |
| Component: | Xinha Core | Version: | |
| Severity: | normal | Keywords: | dropdown select |
| Cc: |
Description
I have added a dropdown to the toolbar by doing something like
config.registerDropdown({
id: "ab",
options: {"A" : "0", "B" : "1"},
action: function(v) { alert(v); } // event handler
});
Now in the htmlarea.js in the function _comboSelected, the event handler is called by
dropdown.action(this);
where this would be the editor object (?). Shouldn't this be changed to
dropdown.action(value);
or
dropdown.action(el, txt);
or something like that? If not, how can I access the selected dropdown from the editor object?
Change History
Note: See
TracTickets for help on using
tickets.
