I have tried, but the editor still removes the DOCTYPE when you switch between CODE and NORMAL. Any other ideas? Is there any way to reset the DOCTYPE when switching to NORMAL-view? This could fix your problem.
By the way, the new editor here in the forum misbehaves after line breaks, the cursor jumps to the beginning of the new line, so i edit this in the CODE-view.