BUEeditor disappears from multiple valued textareas
Roulion - January 25, 2009 - 20:05
| Project: | BUEditor |
| Version: | 6.x-2.x-dev |
| Component: | User interface |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Description
The problem is with textfield area which can have several values. If you click on teh "add more value" button, the BUEedtor bar desappears.
According to http://drupal.org/node/119102#comment-1219637, it looks like the problem comes from the fact that the 'Add more values' of multiple fields in CCK execute Drupal.attachBehaviors(new_content) after the new DOM elements have been attached to the page via the AHAH request, and that requires the content of these DOM elements to be compatible with that.

#1
#2
thanks for reporting.
this is fixed on 6.x branch.
#3
thanks for the patch.
When i use it with the multigroup module, the BUEeditor is just displayed on the first row as you can see on the attachement
#4
New items are not processed because ajax output does not have the information. Only Drupal.settings is updated, which means BUEditor has to insert its settings into Druapl.settings. Below is the patch doing so.
After applying the patch you have to add the path "content/js_add_more/*" into your editor's visibility settings, since the additional textareas are created by this page not by the current page.
#5
There was an issue with editor demo not appearing in admin pages.
#6
thanks a lot
Since i can't apply patch, i made mannually (i gess the lines with a "-" have to be deleted and the ones with a "+" have to be added). All seems good.
Although I added the "content/js_add_more/*" line in the visibility settings, the BUEeditor doesn't appear when i add a new value.
would you mind delivering a tar ball of the module please ?
thank you
#7
The zip contains updated files.
And also you may try this path instead of the old one content/js_add_more*
#8
zip
#9
Attachment disappears.
Anyway i committed the changes to 6.x branch
bueditor.admin.inc
bueditor.module
bueditor.js
#10
OK i manger to make it work, i had to add "content/js_add_more/*" AND "/content_multigroup/js_add_more/*" in the visibility settings
thanks for your help
#11
then i'm marking this as fixed.
#12
Automatically closed -- issue fixed for 2 weeks with no activity.
#13
I upgraded to 2.x version and the trick no longer works...
#14
The scope of settings was changed from "header" to "footer" in bueditor 2.x.
CCK's add more script seems to get settings from only header.
The below patch is for cck 6.x-3.x-dev
Can you please create an issue about this in cck queue?
#15
I applyed the patch, but it doesn't seems to work.
My visibility settings are :
node/*
node/*/*
comment/*/*
content/js_add_more/*
content_multigroup/js_add_more/*
user/*
admin/build/block/add
and the library files are
%BUEDITOR/library/bue.popup.js
%BUEDITOR/library/bue.popup.css
%BUEDITOR/library/bue.html.js
%BUEDITOR/library/bue.preview.js
%BUEDITOR/library/bue.imce.js
%BUEDITOR/library/bue.misc.js
%BUEDITOR/library/bue.accessibility.js
%BUEDITOR/library/bue.autocomplete.js
%BUEDITOR/library/bue.ctrl.js
%BUEDITOR/library/bue.find.js
%BUEDITOR/library/bue.history.js
%BUEDITOR/library/bue.li.js
%BUEDITOR/library/bue.tab.js
Are there particular settings to fix it?
thank for your help
PS: i will creat the issue when the patchs is ok..
#16
Forgot to patch multigroup.
This should handle it also.
#17
Thanks a lot, it's working... i created the issue in cck (#607138: Get settings from all scopes in ahah requests)
#18