Document Editor built in angularjs