When using multiple instances of CKEditor Tabber on one page, the left positioning of the DT's(tabs) isn't correct anymore. (Except for the first instance)
This happens because the tabIndex has been set as a global var to the plugin's scope and get's incremented everytime it sees a new DT(tab).
So the tabIndex get's only bigger while it should start at 0 again for every instance.

For e.g.: if I have 2 instances of the CKEditor Tabber, the tabIndex for the second instance might be starting already at 2 (instead of 0).
So the code thinks that the first tab of the 2nd CKEditor Tabber instance is the 3rd tab, while it should be seen as the first.
This breaks the calculation of the positioning of the tabs.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dylancompanjen created an issue. See original summary.

dylancompanjen’s picture

Issue summary: View changes
dylancompanjen’s picture

dylancompanjen’s picture

dutchyoda’s picture

Status: Active » Reviewed & tested by the community

This patch works for me.

Tommy_001’s picture

I only have one instance of ckeditor tabber on my page, but the left positioning didn't work properly when logged in as admin until I applied your patch (it worked fine when logged out, strange enough. Thanks for this patch!

SebCorbin’s picture

Status: Reviewed & tested by the community » Fixed

Patch applied and release created, thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.