首页 > 解决方案 > 从 react-ace 编辑器中的排水沟中删除所有注释

问题描述

我在我的反应项目中使用 AceEditor,但我不想在装订线中显示错误或警告。我怎样才能做到这一点?我尝试了以下一种方法,但没有奏效。

<AceEditor
    readOnly
    value={code || ''}
    mode="javascript"
    name="UNIQUE_ID_OF_DIV"
    editorProps={{ $blockScrolling: true }}
    theme="github"
    showError={false}
    width='auto'
    height={height}
    annotations={null} />

谢谢你。

标签: reactjsreact-ace

解决方案


推荐阅读