Text Editor with AngularJS