enable codemirror for custom code widget