SVG based AngularJS directive for text editing