normalize editor template