The most straightforward way to implement the raw editing mode would be to render it in Zebra with generic components (in Preview if the current editPrevieMode is rawContent).
For that we'd need to re-implement the Fusion based raw content mode rendering and add the CSS dynamically.