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'm trying to use widgeditor with CCK. In my content type, I defined a field as Field Text, with 5 rows. When editing a node, It's rendered as:
<div class="form-item">
<label for="edit-field-presentazione-0-0-value">Presentazione: </label>
<textarea cols="60" rows="5" name="field_presentazione_0[0][value]" id="edit-field-presentazione-0-0-value" class="form-textarea resizable"></textarea>
</div>
However, widgeditor isn't enabled for that field (but is correctly enabled for the 'edit-log' field in the same page).
I noticed that, in the script activating widgeteditor, there are two textareas listed:
textareas[0] = "edit-log";
textareas[1] = "edit-value";
Since there is no field with id="edit-value", I guess that some mismatch caused "edit-field-presentazione-0-0-value" (which is the id assigned to my textarea) to be replaced by "edit-value" :-(
Comments
Comment #1
Gurpartap Singh CreditAttribution: Gurpartap Singh commentedhttp://drupal.org/node/171757