HTMLEditorField insert_width

Silverstripe Version: 4.2.1

Question:

In SilverStripe 3, there was a config option to allow one to specify the width for embedding images:

HtmlEditorField:
  insert_width:
    800

see: HtmlEditorField | SilverStripe API

Is there such a config option in SilverStripe 4?

This is now under:

SilverStripe\Assets\File:
  insert_width: 800
  insert_height: 800

It seems you have to supply a sensible height as well, otherwise you end up getting a scaled image.

1 Like