Iro*_*hon 5 javascript monaco-editor
codemirror 编辑器支持一种自动调整高度及其内容的模式:
http://codemirror.net/demo/resize.html
我们也可以制作 monaco-edtior 自动适配内容吗?
TL;DR:添加automaticLayout: true到您的编辑器配置中:
monaco.editor.create( domEl, {...options, automaticLayout: true});
Run Code Online (Sandbox Code Playgroud)
您的问题是先前 SO 问题的一般问题。