From d766f9fd13227c8abd1a7722376541becb8c22ca Mon Sep 17 00:00:00 2001 From: Jake Bentvelzen Date: Tue, 1 Sep 2015 10:38:58 +1000 Subject: [PATCH] Modified GridField in 'HtmlEditorField_Toolbar' class to allow custom classes. --- forms/HtmlEditorField.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forms/HtmlEditorField.php b/forms/HtmlEditorField.php index fad081a74..c49dc1971 100644 --- a/forms/HtmlEditorField.php +++ b/forms/HtmlEditorField.php @@ -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);