Issue 6824: First commit (experimental branch with CodeMirror 4.0b1)
Issue 6824: Fix issue with cursor in command editor