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
Comment #2
vzsigmond commentedHello!
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
Comment #4
vzsigmond commented