Silverstripe 3.1 HTMLEditorField embedded images now have a changable default width setting

Silverstripe's default is to embed images with an auto width set of 600px. This is often not an appropriate width setting for your client, as they may be uploading extra large / small images.

Now there is a handy YAML setting to allow you to change the default width. Add the following to your config.yml

HtmlEditorField:
  insert_width:
    835


Please note, YAML syntax is filthy and disgusting. White-space is important in the syntax. No tabs are allowed, only spaces, 2 spaces for indentation. If you get a weird error, its because you might have used a tab, or are missing a ‘:’. Good luck, you’re going to need it.