||vars.get("$context.currentTemplateType")==DocumentTemplate.types.HTML))// TODO: invisible for html as there are problems with images which are removed by the html-editor
{
result.string(neon.COMPONENTSTATE_INVISIBLE);
}
// keep in invisible mode to prevent a visible editor directly after save which needs much time to initiate (for eml)
// somehow the edit view is in view mode and the editor doesn't know anything about it and initializes itself...