in app/addons/components/components/codeeditorpanel.js [128:163]
render() {
var classes = '';
if (this.props.className) {
classes = this.props.className;
}
const heightSettings = {};
if (this.props.setHeightToLineCount) {
heightSettings.setHeightToLineCount = true;
heightSettings.maxLines = 1000;
} else {
heightSettings.setHeightToLineCount = false;
heightSettings.minLines = 30;
}
return (
<div className={classes}>
<label>
<span>{this.props.title}</span>
{this.getDocIcon()}
{this.getZenModeIcon()}
{this.getCheatsheetIcon()}
</label>
<CodeEditor
id={this.props.id}
ref={node => this.codeEditor = node}
mode={this.props.syntaxMode}
defaultCode={this.state.code}
showGutter={true}
ignorableErrors={ignorableErrors}
blur={this.props.blur}
{...heightSettings}
/>
<Beautify code={this.state.code} beautifiedCode={this.beautify} />
{this.getZenModeOverlay()}
</div>
);
}