Hi Bloodcarver,
The doctype code has been removed because the editor has not the EditCompleteDocument="true" setting.
You said you got the same problem with the online demo page I sent, so I need to confirm that you are testing the same setting as I said and with the same code.
Regards,
Ken