Closed (duplicate)
Project:
Wysiwyg
Version:
7.x-2.x-dev
Component:
Editor - CKEditor
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
31 Aug 2012 at 13:12 UTC
Updated:
13 Jun 2013 at 22:58 UTC
Rearranging multivalue WYSIWYG fields causes data loss.
Hold the data of each into a JSON array somewhere and repopulate once the fields are re-arranged.
#1615214: Multifield: “Add another item” deletes content in CKEditor
#953210: CKEditor doesn't work with CCK multiple fields
#1155678: Implement Drupal.behaviors.attachWysiwyg.detach
Comments
Comment #1
wjaspers commentedComment #2
twodThis should have been fixed since #1155678: Implement Drupal.behaviors.attachWysiwyg.detach got in, and I am unable to reproduce the problem with the current 7.x-2.x-dev.
When the move happens, Drupal's tabledrag script triggers our detach behavior, which makes the editor sync its contents back to the original textarea before the actual elements are moved in the DOM. Then tabledrag triggers the attach behaviors on the textarea to load the editor again.
Note that #953210: CKEditor doesn't work with CCK multiple fields is for the ckeditor.module and not this project.
Comment #3
dalinSounds like this is probably resolved. Marking MNMI so that we can better see what is blocking a new stable 7.x release.
Comment #4
twodWithout further details about the problem I can only close this issue as a duplicate of #1155670. Please re-open it if you can provide the requested information.