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

Roulion - February 2, 2009 - 11:21
Title:multiple value field : Compatibility with Drupal.attachBehaviors» adding value makes BUEeditor disappear
Version:6.x-1.2» 6.x-1.x-dev

#2

ufku - February 16, 2009 - 19:38
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.

#3

Roulion - February 17, 2009 - 19:01
Status:fixed» active

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

AttachmentSize
add-more-value.png 338.86 KB

#4

ufku - February 18, 2009 - 15:05
Status:active» needs review

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.

AttachmentSize
bueditor.patch 3.3 KB

#5

ufku - February 18, 2009 - 15:56

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

AttachmentSize
bueditor.patch 4.06 KB

#6

Roulion - February 19, 2009 - 14:20

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

ufku - February 19, 2009 - 14:38

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

#8

ufku - February 19, 2009 - 14:39

zip

#9

ufku - February 19, 2009 - 14:53

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

#10

Roulion - February 19, 2009 - 18:45

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

ufku - February 20, 2009 - 00:47
Status:needs review» fixed

then i'm marking this as fixed.

#12

System Message - March 6, 2009 - 00:50
Status:fixed» closed

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

#13

Roulion - October 16, 2009 - 21:32
Version:6.x-1.x-dev» 6.x-2.x-dev
Status:closed» active

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

#14

ufku - October 16, 2009 - 22:54

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?

AttachmentSize
content.node_form.inc_.patch 1.38 KB

#15

Roulion - October 17, 2009 - 11:20

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

ufku - October 17, 2009 - 11:46

Forgot to patch multigroup.
This should handle it also.

AttachmentSize
cck.patch 2.92 KB

#17

Roulion - October 17, 2009 - 12:23

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

#18

ufku - November 3, 2009 - 22:51
Status:active» closed
 
 

Drupal is a registered trademark of Dries Buytaert.