style tags like the following get evaluated after previewing:
<style type="text/css"> * { background: yellow; } </style>

Not sure if there's a great fix to this. The only thing I can think of would be to render the preview inside an iframe tag.
Please render inside an iframe! Or at least give the option to. I'm having trouble using this editor within a framework because of inherited CSS styles when previewing
Most helpful comment
Not sure if there's a great fix to this. The only thing I can think of would be to render the preview inside an
iframetag.