Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#1 | run_core_js_first-2036215-1.patch | 1.62 KB | Jamie Holly |
Comments
Comment #1
Jamie Holly CreditAttribution: Jamie Holly commentedAttached 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.
Comment #2
ufku CreditAttribution: ufku commentedCommitted, thanks.