BUG abstract HTMLEditorConfig instantiates (#6244)

https://github.com/silverstripe/silverstripe-framework/blob/master/Forms/HTMLEditor/HTMLEditorConfig.php#L64

On line 64, HTMLEditorConfig tries to create an instance of itself if it doesn't exist. However, HTMLEditorConfig is abstract and this throws an error.

This is caused by admin/_config.php
This commit is contained in:
Michael Strong 2016-10-28 15:21:44 +13:00 committed by Sam Minnée
parent 1734e0d2a3
commit 1df533298d

View File

@ -1,11 +1,11 @@
<?php
use SilverStripe\Admin\CMSMenu;
use SilverStripe\Forms\HTMLEditor\HTMLEditorConfig;
use SilverStripe\Forms\HTMLEditor\TinyMCEConfig;
// Default CMS HTMLEditorConfig
HTMLEditorConfig::get('cms')->setOptions(array(
TinyMCEConfig::get('cms')->setOptions(array(
'friendly_name' => 'Default CMS',
'priority' => '50',
@ -32,7 +32,7 @@ HTMLEditorConfig::get('cms')->setOptions(array(
. "object[width|height|data|type],param[name|value],map[class|name|id],area[shape|coords|href|target|alt]"
));
HTMLEditorConfig::get('cms')
TinyMCEConfig::get('cms')
->enablePlugins(array(
'contextmenu' => null,
'image' => null,