codemirror is working as epected