|
|
@@ -1,7 +1,6 @@
|
|
|
import React from 'react';
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
|
|
-import Button from 'react-bootstrap/es/Button';
|
|
|
import FormGroup from 'react-bootstrap/es/FormGroup';
|
|
|
import FormControl from 'react-bootstrap/es/FormControl';
|
|
|
import ControlLabel from 'react-bootstrap/es/ControlLabel';
|
|
|
@@ -39,8 +38,6 @@ export default class OptionsSelector extends React.Component {
|
|
|
this.onClickStyleActiveLine = this.onClickStyleActiveLine.bind(this);
|
|
|
this.onClickRenderMathJaxInRealtime = this.onClickRenderMathJaxInRealtime.bind(this);
|
|
|
this.onToggleConfigurationDropdown = this.onToggleConfigurationDropdown.bind(this);
|
|
|
-
|
|
|
- this.dispatchOnClickHandsontableButton = this.dispatchOnClickHandsontableButton.bind(this);
|
|
|
}
|
|
|
|
|
|
componentDidMount() {
|
|
|
@@ -107,13 +104,6 @@ export default class OptionsSelector extends React.Component {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * dispatch onClickHandsontableButton event
|
|
|
- */
|
|
|
- dispatchOnClickHandsontableButton() {
|
|
|
- this.props.onClickHandsontableButton();
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* dispatch onChange event
|
|
|
*/
|
|
|
@@ -121,12 +111,6 @@ export default class OptionsSelector extends React.Component {
|
|
|
this.props.onChange(this.state.editorOptions, this.state.previewOptions);
|
|
|
}
|
|
|
|
|
|
- renderHandsontableModalButton() {
|
|
|
- return (
|
|
|
- <Button bsSize="small" onClick={this.dispatchOnClickHandsontableButton}><i className="icon-grid"></i></Button>
|
|
|
- );
|
|
|
- }
|
|
|
-
|
|
|
renderThemeSelector() {
|
|
|
const optionElems = this.availableThemes.map((theme) => {
|
|
|
return <option key={theme} value={theme}>{theme}</option>;
|
|
|
@@ -242,7 +226,6 @@ export default class OptionsSelector extends React.Component {
|
|
|
|
|
|
render() {
|
|
|
return <div className="d-flex flex-row">
|
|
|
- <span className="m-l-5">{this.renderHandsontableModalButton()}</span>
|
|
|
<span className="m-l-5">{this.renderThemeSelector()}</span>
|
|
|
<span className="m-l-5">{this.renderKeymapModeSelector()}</span>
|
|
|
<span className="m-l-5">{this.renderConfigurationDropdown()}</span>
|
|
|
@@ -273,5 +256,4 @@ OptionsSelector.propTypes = {
|
|
|
editorOptions: PropTypes.instanceOf(EditorOptions).isRequired,
|
|
|
previewOptions: PropTypes.instanceOf(PreviewOptions).isRequired,
|
|
|
onChange: PropTypes.func.isRequired,
|
|
|
- onClickHandsontableButton: PropTypes.func.isRequired,
|
|
|
};
|