Allow file to be inserted at cursor position for CodeMirror instances