added search replace as in codemirror examples