FIX HtmlEditorField in editable column

Rather than disable the field as per #128, use the full
FieldHolder method to bring the wrapping divs that appear to be necessary
in 3.2 and up. Still a couple of occassional issues, but much less flakey
This commit is contained in:
Marcus Nyeholt 2016-04-11 14:15:15 +10:00
parent a75779084c
commit 3f2579a4f1

View File

@ -70,6 +70,10 @@ class GridFieldEditableColumns extends GridFieldDataColumns implements
$field->setName($this->getFieldName($field->getName(), $grid, $record));
$field->setValue($value);
if ($field instanceof HtmlEditorField) {
return $field->FieldHolder();
}
return $field->forTemplate();
}