codemirror dialog