Modified GridField in 'HtmlEditorField_Toolbar' class to allow custom classes.

This commit is contained in:
Jake Bentvelzen 2015-09-01 10:38:58 +10:00
parent f3f0315cc1
commit d766f9fd13

View File

@ -317,7 +317,7 @@ class HtmlEditorField_Toolbar extends RequestHandler {
new GridFieldDeleteAction(),
new GridFieldDetailForm()
);
$fileField = new GridField('Files', false, null, $fileFieldConfig);
$fileField = GridField::create('Files', false, null, $fileFieldConfig);
$fileField->setList($this->getFiles($parentID));
$fileField->setAttribute('data-selectable', true);
$fileField->setAttribute('data-multiselect', true);