adding codemirror 4 for template