fix to text template text editing