Opened 13 years ago

Closed 13 years ago

#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.

  1. Use any plugin which appends some buttons to toolbar.
  2. 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.
  3. 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 (1)

fig-xinha-ticket940.png (10.8 KB) - added by htanaka 13 years ago.

Download all attachments as: .zip

Change History (5)

Changed 13 years ago by htanaka

comment:1 Changed 13 years ago by htanaka

add picture

comment:2 Changed 13 years ago by htanaka

  • Milestone set to Version 1.0

comment:3 Changed 13 years ago by htanaka

  • Owner changed from gogo to htanaka

comment:4 Changed 13 years ago by htanaka

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.