mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Change new HTMLEditorField
to HTMLEditorField::Create
(#2050)
This allows for the field to be overridden using the injector e.g. ```yml SilverStripe\Core\Injector\Injector: SilverStripe\Forms\HTMLEditor\HTMLEditorField: class: SilverStripers\markdown\forms\MarkdownEditorField ```
This commit is contained in:
parent
b5f64aebec
commit
7eb04121a6
@ -1855,7 +1855,7 @@ class SiteTree extends DataObject implements PermissionProvider, i18nEntityProvi
|
||||
new TextField("Title", $this->fieldLabel('Title')),
|
||||
$urlsegment,
|
||||
new TextField("MenuTitle", $this->fieldLabel('MenuTitle')),
|
||||
$htmlField = new HTMLEditorField("Content", _t(__CLASS__.'.HTMLEDITORTITLE', "Content", 'HTML editor title')),
|
||||
$htmlField = HTMLEditorField::create("Content", _t(__CLASS__.'.HTMLEDITORTITLE', "Content", 'HTML editor title')),
|
||||
ToggleCompositeField::create(
|
||||
'Metadata',
|
||||
_t(__CLASS__.'.MetadataToggle', 'Metadata'),
|
||||
|
Loading…
Reference in New Issue
Block a user