Ticket #940 (closed defect: fixed)
custom toolbar with plugin
| Reported by: | htanaka | Owned by: | htanaka |
|---|---|---|---|
| Priority: | normal | Milestone: | Version 1.0 |
| Component: | Xinha Core | Version: | trunk |
| Severity: | normal | Keywords: | |
| Cc: |
Description
There is a possibility of some elements of the toolbar which overlaps appearing. And one of them dose nothing to work. It will happens when custom layouting toolbar including buttons which produced by plugin.
- Use any plugin which appends some buttons to toolbar.
- In layouting toolbar buttons with Xinha configuration object, plan to insert the plugin produced button into any position before the preset position of that button.
- Start editor with the plugin. Your toolbar will be broken.
Reason why, (perhaps) in registering process of plugin button failed to detect existence of same button in past. Xinha.Config.prototype.addToolbarElement function is called when plugin would be registerd. This implements detection which dose already exist a button same with registering one, but it is in while detecting the positoin to insert. Both process runs in a same time. The problem may be here.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
