I created a content type using flexinode. When i try to edit a node, i cannot modify the "content format"! It seems to be always resorting to the system default, not the value for the specific node. i verified this by changing the default from Filtered HTML to Full HTML , and all the nodes now use this setting.

I tried installing a newer version of the "field_select.inc" file (maybe 1.13?), but it messed up other things, but may have fixed this problem (I cannot tell because the new version wouldn't let me save because it thought incorrectly that my textbox field was empty.)

I also installed contextlinks... is this causing problems?

thanks, jeff

Comments

ufku’s picture

i have the same problem.
i discovered that selected input format is correctly written to the database(node_revisions.format) on submit. However, in node/edit page i see that the default format is checked whatever the real format is.
most probably it's a simple form output issue.

ufku’s picture

problem is: all textareas are named as edit[body] and all input formats as edit[format].

i could fix this by changing two lines in flexinode_field_textarea_form function.

function flexinode_field_textarea_form($field, &$node) {
  $fieldname = 'flexinode_'. $field->field_id;
  $formatname = 'flexinode_'. $field->field_id .'_format';

  $form[$fieldname.'_filter']['body'] = array(//here replace 'body' with $fieldname
    '#type' => 'textarea',
    '#title' => t($field->label), 
    '#default_value' => isset($node->$fieldname) ? $node->$fieldname : $field->default_value,
    '#rows' => $field->rows,
    '#description' => t($field->description),
    '#required' => $field->required,
    '#weight' => $field->weight,
  );
  $form[$fieldname.'_filter']['format'] = filter_form($node->$formatname, $field->weight + 1);// here add array($formatname) as a third parameter to filter_form function.
  return $form;
}
rosenblum68’s picture

I tried the above patch, but it messed up other things. When i add a new node of flexinode type, it says "you must fill in X" which is a textfield, but there IS text in that textfield. So there is still glitches need to be worked out. Thanks for trying though. Anyone else working on this bug?

morbus iff’s picture

Assigned: Unassigned » morbus iff
Status: Active » Fixed

I just fixed this in CVS earlier this morning.

Anonymous’s picture

Status: Fixed » Closed (fixed)