Slight rewrite of the ui.tinymce initialization

Restructured the ui.tinymce initialization and made it more compatible
with late data binding when using AngularJS resource objects.