Render text editor contents inside shadow DOM

Closes #1800

## Tasks

* [x] Fix git diff styling
* [x] Fix specs
* [x] Fix loss of ability to insert text after autocompleting when the menu doesn't pop up
* [x] Add a feature flag
Yay no more react