In Drupal, fields can have multiple fields. (I am talking about the built in Drupal fields, and not those provided by modules such as Field Collection).

When I use one of these fields with Bue Editor, the BueEditor buttons appear. However, when I click on "Add another item" the buttons disappear.
How can I fix this?

Comments

Linus’s picture

You need to add system/ajax in the visibility settings of BUEditor, because the multi-value fields are loaded via ajax.

dww’s picture

Title: Buttons disappear on multi value fields » Buttons disappear after AJAX events
Version: 7.x-1.x-dev » 8.x-1.x-dev
Component: Miscellaneous » User interface
Category: Support request » Bug report
Priority: Normal » Major

This is still happening in D8. All the BUEditor buttons disappear as soon as you trigger any AJAX events on a form. Seems like a fairly major UI bug, if not critical. There are no visibility settings in D8 so the suggestion in #1 no longer applies to D8.

  • ufku committed 372cd0c on 8.x-1.x
    Issue #2531540: Fixed editor disappearing after ajax calls.
    
ufku’s picture

Status: Active » Fixed

It seems editor module is triggering "detach" callback with "serialize" key on ajax calls. Not sure why detach is triggered instead of "onChange". Added a fix anyway.

dww’s picture

Amazing, thanks! Great timing that this made it into the 8.x-1.1 release, too. Tested and it's working great.

Thanks, again!
-Derek

Status: Fixed » Closed (fixed)

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