diff --git a/code/elemental/FileElementalExtension.php b/code/elemental/FileElementalExtension.php new file mode 100644 index 0000000..1d93e21 --- /dev/null +++ b/code/elemental/FileElementalExtension.php @@ -0,0 +1,23 @@ + File::class, + ]; + + private static $owns = [ + 'MyFile', + ]; + + public function updateCMSFields(FieldList $fields) + { + $fields->removeByName('HTML'); + } +}