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

Gurpartap Singh’s picture

Version: 5.x-1.x-dev » 6.x-1.0
Status: Active » Closed (duplicate)