Refactor text editor into directive
Stuff
Better refactoring of get/set for model on text editor.