Put codemirror's modes at the top
Fix paste creation