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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Konstantin Komelin’s picture

Status: Active » Patch (to be ported)
FileSize
433 bytes

Attached the patch. Please review.

Jamie Holly’s picture

Assigned: Unassigned » Jamie Holly
Status: Patch (to be ported) » Needs review
FileSize
536 bytes

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

Konstantin Komelin’s picture

I've tested your patch with BUEditor 7.x-1.4 and 7.x-1.5. It works like a charm. Thanks.

Konstantin Komelin’s picture

Status: Needs review » Reviewed & tested by the community
Jamie Holly’s picture

Status: Reviewed & tested by the community » Closed (fixed)

Awesome! 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.

shunting’s picture

Patch works for me.

jnorell’s picture

I 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!

chrisnovak’s picture

I could not figure out why the BUEditor was not displaying, +1 to jnorell's post, about releasing this patch, and thanks!

Jamie Holly’s picture

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

Jamie Holly’s picture

Issue summary: View changes

improved desc