More notes
Refactors conditionals into texteditor.js