Fixed bugs with plain.

Editor no longer crashes when toggling WordWrap
Vertical text is fixed