我正在尝试启用codemirror插件。我已经导入了手册中提到的所有搜索插件。但是我在任何地方都找不到如何启用此插件的反应。
import 'codemirror/lib/codemirror.css';
import 'codemirror/theme/xq-light.css';
import 'codemirror/theme/neat.css';
import 'codemirror/mode/javascript/javascript.js';
import 'codemirror/addon/search/search.js';
import 'codemirror/addon/dialog/dialog.js';
import 'codemirror/addon/dialog/dialog.css';
import 'codemirror/addon/search/jump-to-line.js';
import 'codemirror/addon/search/match-highlighter.js';
import 'codemirror/addon/search/matchesonscrollbar.css';
import 'codemirror/addon/search/matchesonscrollbar.js';
import 'codemirror/addon/search/searchcursor.js';
import './ContentEditor.css';
options = {
mode: 'javascript',
theme: 'xq-light',
lineNumbers: true,
};
<CodeMirror
...
options={options}
...
onChange={...}
/>
如何启用所有这些插件以及我需要通过哪些道具?