feature(editor): add text-editor directive

use medium-editor for text editing

SD-409
fix(build): make build work with non-requirejs modules