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.

Comments

Roulion’s picture

Title: multiple value field : Compatibility with Drupal.attachBehaviors » adding value makes BUEeditor disappear
Version: 6.x-1.2 » 6.x-1.x-dev
ufku’s picture

Title: adding value makes BUEeditor disappear » BUEeditor disappears from multiple valued textareas
Status: Active » Fixed

thanks for reporting.
this is fixed on 6.x branch.

Roulion’s picture

Status: Fixed » Active
StatusFileSize
new338.86 KB

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

ufku’s picture

Status: Active » Needs review
StatusFileSize
new3.3 KB

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.

ufku’s picture

StatusFileSize
new4.06 KB

There was an issue with editor demo not appearing in admin pages.

Roulion’s picture

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

ufku’s picture

The zip contains updated files.
And also you may try this path instead of the old one content/js_add_more*

ufku’s picture

zip

ufku’s picture

Attachment disappears.
Anyway i committed the changes to 6.x branch
bueditor.admin.inc
bueditor.module
bueditor.js

Roulion’s picture

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

ufku’s picture

Status: Needs review » Fixed

then i'm marking this as fixed.

Status: Fixed » Closed (fixed)

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

Roulion’s picture

Version: 6.x-1.x-dev » 6.x-2.x-dev
Status: Closed (fixed) » Active

I upgraded to 2.x version and the trick no longer works...

ufku’s picture

StatusFileSize
new1.38 KB

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?

Roulion’s picture

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

ufku’s picture

StatusFileSize
new2.92 KB

Forgot to patch multigroup.
This should handle it also.

Roulion’s picture

Thanks a lot, it's working... i created the issue in cck (#607138: Get settings from all scopes in ahah requests)

ufku’s picture

Status: Active » Closed (fixed)