Add texttemplate into editor