Merge pull request #4567 from SilbinaryWolf/modify-htmleditor-toolbar

Modified GridField in 'HtmlEditorField_Toolbar' class to allow GridField custom class
This commit is contained in:
Damian Mooyman 2015-09-02 09:28:19 +12:00
commit 17f3afa0e9

View File

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