Revision bde7047a
Added by Oleh Fedorenko over 2 years ago
webpack/assets/javascripts/react_app/components/Editor/components/EditorView.js | ||
---|---|---|
onChange,
|
||
readOnly,
|
||
theme,
|
||
autocompletion,
|
||
liveAutocompletion,
|
||
value,
|
||
isSelected,
|
||
}) => (
|
||
... | ... | |
editorProps={{ $blockScrolling: Infinity }}
|
||
showPrintMargin={false}
|
||
debounceChangePeriod={250}
|
||
enableBasicAutocompletion={autocompletion}
|
||
enableLiveAutocompletion={autocompletion && liveAutocompletion}
|
||
/>
|
||
);
|
||
EditorView.propTypes = {
|
||
mode: PropTypes.string.isRequired,
|
||
theme: PropTypes.string.isRequired,
|
||
autocompletion: PropTypes.bool.isRequired,
|
||
liveAutocompletion: PropTypes.bool.isRequired,
|
||
keyBinding: PropTypes.string.isRequired,
|
||
onChange: PropTypes.func,
|
||
readOnly: PropTypes.bool.isRequired,
|
Also available in: Unified diff
Fixes #32035 - Add DSL autocompletion in templates