Sep 21, 2017 in

I recently found out a bug I wasn't aware of. My default text format wasn't saved on a body field. So, while I was expecting that editors would see my text format B, they saw by default text format A (which is the default). To fix this, I used the following snippet in my form_alter hook: 

$form['body']['widget'][0]['#format'] = "MY_WANTED_FORMAT";