Fork自 GitCode / 1024程序员开源挑战赛(10.23-11.14)
参考: <https://github.com/react-monaco-editor/react-monaco-editor/commits/master/src/editor.tsx>