remove superfluous rawMode editor prop

This commit is contained in:
Shawn Erquhart 2017-04-24 22:39:37 -04:00
parent 902134c4e8
commit 7a66dd4dcb
3 changed files with 1477 additions and 1439 deletions

View File

@ -52,7 +52,6 @@ export default class MarkdownControl extends React.Component {
onAddAsset={onAddAsset}
onRemoveAsset={onRemoveAsset}
onMode={this.handleMode}
rawMode
getAsset={getAsset}
value={value}
/>

View File

@ -172,7 +172,6 @@ export default class RawEditor extends React.Component {
}
handleRef = (ref) => {
console.log(ref);
this.element = ref;
if (ref) {
this.caretPosition = new CaretPosition(ref);
@ -307,7 +306,7 @@ export default class RawEditor extends React.Component {
};
render() {
const { onAddAsset, onRemoveAsset, getAsset, rawMode } = this.props;
const { onAddAsset, onRemoveAsset, getAsset } = this.props;
const { plugins, selectionPosition, dragging } = this.state;
const classNames = [styles.root];
if (dragging) {
@ -330,7 +329,6 @@ export default class RawEditor extends React.Component {
onItalic={this.handleItalic}
onLink={this.handleLink}
onToggleMode={this.handleToggle}
rawMode={rawMode}
plugins={plugins}
onSubmit={this.handlePluginSubmit}
onAddAsset={onAddAsset}
@ -357,6 +355,5 @@ RawEditor.propTypes = {
getAsset: PropTypes.func.isRequired,
onChange: PropTypes.func.isRequired,
onMode: PropTypes.func.isRequired,
rawMode: PropTypes.bool,
value: PropTypes.node,
};

2910
yarn.lock

File diff suppressed because it is too large Load Diff