We are using the advanced editor for our email template custom code.
May I ask why are you removing the html DOCTYPE declaration??? If you remove it many of the email clients ,e.g. iPhone mail iOS 13, are not able to render the styles correctly nor any of the media queries! We just spent two days and find our our emails are failing.This is a total disappointment!