added codemirror editor initialization