fixed late init for codemirror widget