properly use templates in modified prose.io editor