textarea id mismatch (?)
tiziano - January 20, 2007 - 17:16
| Project: | widgEditor - A WYSIWYG editor |
| Version: | 6.x-1.0 |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | duplicate |
Jump to:
Description
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" :-(

#1
http://drupal.org/node/171757