Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have a few Boxes with basic text content. When I edit a Box (under admin/build/blocks) none of my changes are saved. Does not seem to be a caching issue as the content inside the text field remains unchanged when I go back and edit the same Box again. What gives?
Comment | File | Size | Author |
---|---|---|---|
#48 | boxes_wysiwgy+ckeditor_support-716034-48.patch | 1015 bytes | brandenlhamilton |
#47 | boxes_wysiwgy+ckeditor_support-716034-47.patch | 975 bytes | brandenlhamilton |
#41 | wysiwyg-boxes-detach.716034.41.patch | 1021 bytes | katbailey |
#40 | wysiwyg_boxes_detach-5198356-40.patch | 1.36 KB | smithmilner |
#37 | boxes_wysiwyg_handle-716034.patch | 786 bytes | tomasbarej |
Comments
Comment #1
jmiccolis CreditAttribution: jmiccolis commentedThis should be fixed in the latest release. Please re-open this if you can still reproduce it with beta2.
Comment #2
snufkin CreditAttribution: snufkin commentedI am having issues with this, latest beta. I used features to export my boxes. When i re-create the site my boxes although have the content in them, are not editable, because they weren't added to the database, and boxes_save tries a drupal_write_record updating according to the box delta.
There is a reference to a hook_default_boxes in the feature file, but i cant see where this would be called from.
Comment #3
yhahn CreditAttribution: yhahn commentedI believe this commit should fix the issue: http://drupal.org/cvs?commit=337682. Let me know if it works.
Comment #4
snufkin CreditAttribution: snufkin commentedYes it works, thanks!
Comment #5
rootdownmedia CreditAttribution: rootdownmedia commentedIm sorry all, I am not CVS literate and unfort need to fix my prod site quickly. Is there an alternate way of downloading the updated module?
Comment #6
rootdownmedia CreditAttribution: rootdownmedia commentedDuh. (To the CVS illiterate users out there) you can download the latest boxes.module file by clicking on "Download" here:
Log of /contributions/modules/boxes/boxes.module
Problem fixed. Thanks yhahn and all!
Comment #8
michaellander CreditAttribution: michaellander commentedI reopened this issue, though it has to do with the WYSIWYG API and CKEditor 3.2.
Similar to this post: http://drupal.org/node/728196
Whenever I try to do the inline editing with boxes the CKEditor is pretty hit or miss on if it loads or not. Then if I for say, split one large paragraph into two separate paragraphs, and click save, the changes are not reflected in the box. However, if I make the above change, then disable and re-enable the editor, the changes then save correctly.
I'm not entirely certain this is an issue with the boxes module, so if not I apologize.
Thanks!
Comment #9
michaellander CreditAttribution: michaellander commentedUpon further testing, I've found that it will always load CKEditor the first time you load the page and click the inline 'edit' link. However, after saving the box and then clicking 'edit' again, the editor will no longer load.
Comment #10
jmiccolis CreditAttribution: jmiccolis commentedTitle change.
Comment #11
justadropofwater CreditAttribution: justadropofwater commentedI've been able to reproduce this with CKEditor (6.x-1.1) and WYSIWYG (6.x-2.1) with the TinyMCE library (3.3.5.1) with Boxes Alpha 2 (the version that comes with OA Beta 6) as well as the latest and greatest (along with the latest Spaces, Context, CTools, etc).
Boxes do not save after the initial creation (Click on Add Custom Box, Edit, Save). I am still am unsure if this is specifically a Boxes issue, see http://drupal.org/node/741572 (which a patch was posted, this didn't work in either of my test cases) and http://drupal.org/node/785356.
Here's some other interesting behavior I've noticed:
When using CKEditor, it will reappear after click on the "Enable/Disable Rich Text Editing" button TWICE after disappearing.
When using TinyMCE, I can disable Rich Text Editing and editing will stick. I can then save and keep my changes.
I'm going to dig a little more into this over the weekend. This issue completely cripples the use/power of Boxes.
Comment #12
wik CreditAttribution: wik commentedsubscribing
Comment #13
fallsemo CreditAttribution: fallsemo commented+1
I can reproduce this using the Boxes 6.x-1.0-beta9, WYSIWYG 6.x-2.1, and CKEditor 3.3.0.5542
Comment #14
andyhu CreditAttribution: andyhu commentedI also experienced with this issue.
Drupal模块
Comment #15
andyhu CreditAttribution: andyhu commentedHi guys,
I spent couple of hours in this issue and found the solution. Just install this module http://drupal.org/project/wysiwygcck and it's dependency modules. And this is it, we are done! If you have any questions please click here http://drupal.org/user/172337/contact to drop me a message
Hope it helps.
Cheers,
Andy
Collabforge.com
Comment #16
patricksettle CreditAttribution: patricksettle commentedBug still active with 6.x-1.0-beta10 and 1.0-beta11, wysiwyg-6.x-2.1 and 2.x-dev. Attempted using wysiwygcck as outlined by #15 but bug continued.
Comment #17
andyhu CreditAttribution: andyhu commentedHi hyrcan,
Have you installed all its dependency modules? I have tested and the issue is sure fixed on my site when I enable wysiwygcck.
Cheers,
Andy
Comment #18
patricksettle CreditAttribution: patricksettle commentedAndy, yes attempted with wysiwygcck and it's dependencies. ~hyrcan
Comment #19
bforchhammer CreditAttribution: bforchhammer commentedSubscribing.
I'm having the same issues as described above; the wysiwygcck solution does not work for me either.
Comment #20
deverman CreditAttribution: deverman commentedsubscribing we seem to be having the issue where the boxes we have are missing the TinyMCE editor all together when I click the Edit link on a panels page containing boxes.
Comment #21
mrtorrent CreditAttribution: mrtorrent commentedsubscribing
Comment #22
quironsubscribing
the wysiwyg libraries are not included on dashboard page.
Comment #23
mrfelton CreditAttribution: mrfelton commentedThe WYSIWYG displays fine for me, but when I save the box, all the content is lost.
Comment #24
quironHi,
I have it partialy working. With the CKEdior version 3.3.2 apears in the box editing textarea, but when save it doesn't save.
To solve the save isue I added the following snippet in all/modules/wyiswyg/editors/js/ckeditor-3.0.js at line 80:
And I can save the boxes.
But it apears some new issues. When add a custom box the editor doesn't apear, I need save the box and then edit it. Looking up on firebug the diference is that the call to wygiwys are not done.
Also, when editing a box, save it and edit again (without a page refresh) the wyswyg doesn't apear and the textarea is bloked. the javascript console rise the follow error:
I hope this testing helps the development!
thanks!
Comment #25
quironHi,
the response talking about it in the wysiwyg issue tracker, maybe it can help here.
http://drupal.org/node/947490
Comment #26
pixelsweatshop CreditAttribution: pixelsweatshop commentedgetting the same thing :)
Comment #27
tylor CreditAttribution: tylor commentedYou can get rid of the editor and avoid the error by using destroy() or detach(), as mentioned in #947490: On save does not doestry the editor instance from #24. Here's a hacky patch for WYSIWYG if you would like to add this to a makefile.
Comment #28
tylor CreditAttribution: tylor commentedMore hacky quick fixes, add setTimeout() during attach so that the textarea has time to load in Chrome and Safari.
Comment #29
borgewarvik CreditAttribution: borgewarvik commented+1
Comment #30
vegardjo CreditAttribution: vegardjo commentedSubscribe - experiencing this with Boxes 6.x.1-0, Wysiwyg 6.x.2-2 and CK 3.4.2.604, installing the modules in #15 didn't work either.
Comment #31
kyle_mathews CreditAttribution: kyle_mathews commented#28 solved this problem for Boxes 1.0, WYSIWYG 2.1, and CKEditor 3.51. Thanks tylor.
Comment #32
Grayside CreditAttribution: Grayside commentedSubscribe. Hacks with timing? hm.
Comment #33
mstef CreditAttribution: mstef commentedsubscribing..
no luck with #28
Comment #34
mrfelton CreditAttribution: mrfelton commentedI get this problem on Drupal 7 too. Boxes 7.x-1.0-beta3, WYSIWYG master.
Comment #35
lyd CreditAttribution: lyd commentedSame problem.
Using clean Open Atrium 1.0 install with latest ckeditor. The editor does not show up in custom box in dashboard.
Am not experienced enough to apply #28. Can someone help?
Comment #36
btopro CreditAttribution: btopro commented+1 sub D6 CKeditor
Comment #37
tomasbarej CreditAttribution: tomasbarej commentedI added a code to boxes.js file, that handles with wysiwyg.module. If box edit form contains enabled wysiwyg instance, after submitting form it will by detached using wysiwyg API before sending the updated form values using ajax. I used it on latest Open Atrium, and it fixes issue with editting box on dashboard.
Here's the attached patch.
Comment #38
gmclelland CreditAttribution: gmclelland commentedIs this also an issue when using D7?
Comment #39
Shiraz DindarD6, #37 worked for me, #28 did not.
Comment #40
smithmilner CreditAttribution: smithmilner commentedMy attempt to port this for D7 dev. I created a boxes submit event that detaches the wysiwyg from the form before saving. I originally had it fire when the box save button was clicked but it was too late in the game and wouldn't work, so I used mousedown for now. I don't think this is best case but lets play with it.
Comment #41
katbailey CreditAttribution: katbailey commentedHere's a version that does the wysiwyg detaching magic in the detach function of Drupal.behaviors.boxes. This means it will be called when Drupal.detachBehaviors() is called, which actually happens during beforeSerialize() of the ajax form submission - which is the perfect time for wysiwyg editors to do their thing.
I don't like the fact that it means boxes' js has to do something wysiwyg-specific - I'm not sure why wysiwyg itself doesn't do this.
EDIT: this is for D7!
Comment #42
e2thex CreditAttribution: e2thex commentedIs there an issue for this in wysiwyg module? I would much rather fix it there then commit something to boxes for fixing this, if we really think this is a wysiwyg problem and not a box one.
Comment #43
tancThanks katbailey, confirmed #41 worked for me. But agree that if this is wysiwyg specific then it should be fixed there.
Comment #44
amstel CreditAttribution: amstel commented#37 worked for me as well. Using D6, Open Atrium, Wysiwig 2.4.
Comment #45
fuzzy76 CreditAttribution: fuzzy76 commented#37 worked like a charm! D6, Wysiwyg, custom context/spaces/features stack. :)
Comment #46
fuzzy76 CreditAttribution: fuzzy76 commentedComment #47
brandenlhamilton CreditAttribution: brandenlhamilton commentedTaking note from the comment referenced above, I've prepared a patch against the 6.x-1.x branch that incorporates the patch provided in #37 (as it seems to be working for several individuals) and a modified implementation of #24, however re-worked to provide the standalone CKEditor module compatibility. Theoretically this should enable both the Wysiwyg and CKEditor modules to work with Boxes.
Comment #48
brandenlhamilton CreditAttribution: brandenlhamilton commentedFound a small bug with the patch I posted in #47. The CKEditor implementation was not properly scoped and could cause a 'ReferenceErrors (“x is not defined”)' error that prevented Boxes from posting the form via AJAX, and instead throwing the JSON response onto the screen.
Comment #49
djdevinSo editing existing boxes works fine for us with spaces_dashboard. But...
On initial box creation, when there are no other boxes on the dashboard, the wysiwyg does not load.
When you save the box as plaintext, and edit, the wysiwyg appears, and works.
Anyone else have this issue? I've tried on a clean D6, debugged with browser tools and figured out that the "edit" button has ctools behaviors attached to it, which makes it work.
But dragging it from from the admin menu to a region, no wysiwyg.
Edit: I think the issue is with Spaces, it's not pulling in javascript when added with drupal_add_js (like ctools would do).
Comment #50
simon.fryer CreditAttribution: simon.fryer commentedI have the same problems as above, still, this amount of time on.
All of the patches above made no difference.
When editing any node with Boxes, Spaces and WYSIWYG i get NO editor when i ADD a new custom box.
If you save the box with nothing filled in, it will error, and the editor will appear.
Beyond this, it only saves the contents of the box if you switch the editor mid way through and then hit save.
Does anyone have a definitive fix? Hell, if you can assure me you can fix the above issues, we can discuss a freelance role to get this fixed for the client.
Answers on a postcard, i'm at a dead end.
Comment #51
hefox CreditAttribution: hefox commentedSounds like needs work based on ^
Comment #52
joseph.olstad6.x no longer supported, please upgrade to 7.x