I'd like to be able to include textareas in my field collections, and make use of a WYSIWYG editor at the same time. I'm using the WYSIWYG module with CKEditor.

Steps to reproduce:

  • I've created a field collection comprising of 2 fields: a text field and textarea.
  • The textarea is set to contain HTML (rather than plain text).
  • The text area defaults to a text input which is displayed using CKEditor.
  • I have allowed the multiples to be created - with an infinite limit.
  • The field_collection widget display type has been set to 'embedded' to allow the fields to be embedded in the node edit form.

If I try to add another set of fields using the 'add another item button', the first item's text area is hidden.

Work Around

If 'disable rich text' is selected before additional items are added, the editor functionality is preserved and the textarea is rendered correctly.

Comments

munkyonline’s picture

Also i've found if you adjust the order of field collections on an embedded form the Ckeditor textarea is emptied and you lose the content if you save the node.

lukus’s picture

lukus’s picture

Here's another: http://drupal.org/node/1223080

Looks like it's a bug with the CKeditor implementation, so closing this issue.

lukus’s picture

Status: Active » Closed (won't fix)
lukus’s picture

For people interested in a solution: this solved my issue http://drupal.org/node/1155678