All versions of SS 4.x. (and 3.x but this cannot be fixed there due to maintenance schedule)
When automatically generating an editor form for DataObject's for an HTMLText type, SilverStripe will instantiate HTMLEditorField directly using the new keyword instead of passing it through the Injector via ::create() like it should.
Relates to https://github.com/silverstripe/silverstripe-cms/pull/2050
CustomHtmlEditorField that extends HtmlEditorField and configure it in the injector, e.g.Injector:
HtmlEditorField:
class: CustomHtmlEditorField
DataObject with a 'ExampleContent' => 'HTMLText' field.DataObject you created, the default framework HtmlEditorField is instantiated and used in the form instead of your custom editor CustomHtmlEditorField.QQ: When issuing a PR, should this be submitted against the latest dot release (e.g. 4.4) or against 4?
We usually consider these "should use injector" changes as non-breaking bug-fixes. You should be fine to target 4.4 (or 4.3 if you want to affect any future patch releases for the 4.3 line too).
Most helpful comment
We usually consider these "should use injector" changes as non-breaking bug-fixes. You should be fine to target
4.4(or4.3if you want to affect any future patch releases for the4.3line too).