When writing a new line in the <style> tag on the demo page, it inserts a div into the css causing the styling to break. I also tried to cut out all text and paste it back in, didn't work either.
Btw, very clever use of contenteditable! Never thought of using it like that.