Support for file insertion on codemirror fields