Cleaned up editor directive

Removed unnecessary $http parameter in the editor directive.
Flatten out the directive's html.