Change Editor word break

This commit is contained in:
sylor_huang@126.com 2020-07-20 15:55:55 +08:00
parent 403e20ea99
commit 0354377539
1 changed files with 1 additions and 0 deletions

View File

@ -24,6 +24,7 @@ class m_editor extends Component {
const { readOnly, editorType, language } = this.props;
const editor_options = {
lineNumbers: "on",
wordWrap: true, //强制换行
selectOnLineNumbers: true,
lineHeight: 24,
renderLineHighlight: "line",