Fixed readonly in codemirror