TC: Template editor now specific to 'format'

The editor in JS now only uses the HtmlEditor if the formet string is
'html'. For all other formats, a simple textarea is used