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.
Problem
Function BUE.behavior was renamed in the recent BuEditor update. It causes crash of BuEditor if we use it together with BUEditor Plus.
JavaScript error message: TypeError: BUE.behavior is not a function BUE.behavior(context, settings);
Solution
Rename BUE.behavior call according to recent changes in the BuEditor module.
I'm going to provide patch in a 10 minutes.
Comment | File | Size | Author |
---|---|---|---|
#2 | fix_for_7_15-1838828-3.patch | 536 bytes | Jamie Holly |
#1 | bueditor_plus-fixed-incompatibility-with-recent-bueditor-1838828-1.patch | 433 bytes | Konstantin Komelin |
Comments
Comment #1
Konstantin Komelin CreditAttribution: Konstantin Komelin commentedAttached the patch. Please review.
Comment #2
Jamie Holly CreditAttribution: Jamie Holly commentedThanks. Here's a modified version of your patch just so it doesn't break if someone uses an older version of BUEditor or hasn't upgraded it yet.
Comment #3
Konstantin Komelin CreditAttribution: Konstantin Komelin commentedI've tested your patch with BUEditor 7.x-1.4 and 7.x-1.5. It works like a charm. Thanks.
Comment #4
Konstantin Komelin CreditAttribution: Konstantin Komelin commentedComment #5
Jamie Holly CreditAttribution: Jamie Holly commentedAwesome! It's committed in the 7,x-1.x-dev release. Hopefully I'll have time next week to get a few more things done and then can do a full version release.
Comment #6
shunting CreditAttribution: shunting commentedPatch works for me.
Comment #7
jnorell CreditAttribution: jnorell commentedI can confirm this works with BUEditor 7.x-1.6 as well.
I'd encourage you to kick out another stable release some time, I just spent a good bit of time trying to figure out why my text formats/profiles weren't working like all the documentation/webpages say they should .. it ended up being this issue.
And thanks for this plugin - I have both tinymce and bueditor working together nicely now!
Comment #8
chrisnovak CreditAttribution: chrisnovak commentedI could not figure out why the BUEditor was not displaying, +1 to jnorell's post, about releasing this patch, and thanks!
Comment #9
Jamie Holly CreditAttribution: Jamie Holly commentedVersion 7.x-1.2 now fixes this. For some reason my last attempt at a release didn't take. Give it a bit for the zip files to pop up.
Comment #9.0
Jamie Holly CreditAttribution: Jamie Holly commentedimproved desc