If teaser.js runs after BUE then when you press the split button to show the teaser field, the editor bar isn't shown for the teaser and the editor bar for the main body field is placed above the teaser. This happens with JQuery Update (see #1103852: jQuery Update breaks some BUEditor code?).

The simple fix is to make sure that Drupal.behaviors.textarea and Drupal.behaviors.teaser both run prior to Drupal.behaviors.BUE. I'll be attaching a patch in just a minute to fix this.

CommentFileSizeAuthor
#1 run_core_js_first-2036215-1.patch1.62 KBJamie Holly
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Jamie Holly’s picture

Status: Active » Needs review
FileSize
1.62 KB

Attached is a patch for this issue. It creates an object with textarea and teaser and checks if they have loaded before BUE or not. If they have not, then they are called at the beginning of Drupal.behaviors.BUE. It also removes the old code that checked for textarea.js running before BUE.

I've been testing it out on a couple of rather busy live sites over the past few days and haven't had any issues yet. It's not the prettiest method, but neither is Drupal.behaviors in D6.

ufku’s picture

Status: Needs review » Fixed

Committed, thanks.

Status: Fixed » Closed (fixed)

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