update codemirror example, insert text at current cursor position
added codemirror 4 version
added codemirror 4 demo + update codemirror 3 demo