Hi. Thank you, a nice module!
I found a bug. I solved it.
Please fix it.
*Sorry, I am not good to speak English.
before

function codemirror_field_field_widget_form(&$form, &$form_state, $field, $instance, $langcode, $items, $delta, $element) {
...
...
  $element['value'] = $widget;

After OK

function codemirror_field_field_widget_form(&$form, &$form_state, $field, $instance, $langcode, $items, $delta, $element) {
...
...
  if ($instance['settings']['text_processing']) {
    $element = $widget;
    $element['#type'] = 'text_format';
    $element['#format'] = isset($items[$delta]['format']) ? $items[$delta]['format'] : NULL;
    $element['#base_type'] = $widget['#type'];
  }
  else {
    $element['value'] = $widget;
  }

Comments

Akira Wada created an issue. See original summary.

vzsigmond’s picture

Assigned: Unassigned » vzsigmond
Priority: Critical » Normal
Status: Active » Needs review

Hello!

Thank you for your feedback!
As I can see the issue is related to the the text formats but I cannot reproduce it. I will investigate the issue in details tomorrow and will give a feedback as soon as I can.
I think it's a less critical issue and it needs review.

Regards,
VZS

  • vzsigmond committed 0b44ee3 on 7.x-1.x
    Issue #2592299 by akira-wada: Text format patch for element in...
vzsigmond’s picture

Component: Documentation » Code
Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.