JavaScript text editor built with AngularJS