mirror of
https://github.com/symbiote/silverstripe-gridfieldextensions.git
synced 2024-10-22 15:05:39 +00:00
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:
parent
a75779084c
commit
3f2579a4f1
@ -71,6 +71,10 @@ class GridFieldEditableColumns extends GridFieldDataColumns implements
|
|||||||
$field->setName($this->getFieldName($field->getName(), $grid, $record));
|
$field->setName($this->getFieldName($field->getName(), $grid, $record));
|
||||||
$field->setValue($value);
|
$field->setValue($value);
|
||||||
|
|
||||||
|
if ($field instanceof HtmlEditorField) {
|
||||||
|
return $field->FieldHolder();
|
||||||
|
}
|
||||||
|
|
||||||
return $field->forTemplate();
|
return $field->forTemplate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user