Render text editor contents inside shadow DOM

Closes #1800
Any reason in particular to change these quotes?