remove superfluous rawMode editor prop
This commit is contained in:
parent
902134c4e8
commit
7a66dd4dcb
@ -52,7 +52,6 @@ export default class MarkdownControl extends React.Component {
|
|||||||
onAddAsset={onAddAsset}
|
onAddAsset={onAddAsset}
|
||||||
onRemoveAsset={onRemoveAsset}
|
onRemoveAsset={onRemoveAsset}
|
||||||
onMode={this.handleMode}
|
onMode={this.handleMode}
|
||||||
rawMode
|
|
||||||
getAsset={getAsset}
|
getAsset={getAsset}
|
||||||
value={value}
|
value={value}
|
||||||
/>
|
/>
|
||||||
|
@ -172,7 +172,6 @@ export default class RawEditor extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
handleRef = (ref) => {
|
handleRef = (ref) => {
|
||||||
console.log(ref);
|
|
||||||
this.element = ref;
|
this.element = ref;
|
||||||
if (ref) {
|
if (ref) {
|
||||||
this.caretPosition = new CaretPosition(ref);
|
this.caretPosition = new CaretPosition(ref);
|
||||||
@ -307,7 +306,7 @@ export default class RawEditor extends React.Component {
|
|||||||
};
|
};
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { onAddAsset, onRemoveAsset, getAsset, rawMode } = this.props;
|
const { onAddAsset, onRemoveAsset, getAsset } = this.props;
|
||||||
const { plugins, selectionPosition, dragging } = this.state;
|
const { plugins, selectionPosition, dragging } = this.state;
|
||||||
const classNames = [styles.root];
|
const classNames = [styles.root];
|
||||||
if (dragging) {
|
if (dragging) {
|
||||||
@ -330,7 +329,6 @@ export default class RawEditor extends React.Component {
|
|||||||
onItalic={this.handleItalic}
|
onItalic={this.handleItalic}
|
||||||
onLink={this.handleLink}
|
onLink={this.handleLink}
|
||||||
onToggleMode={this.handleToggle}
|
onToggleMode={this.handleToggle}
|
||||||
rawMode={rawMode}
|
|
||||||
plugins={plugins}
|
plugins={plugins}
|
||||||
onSubmit={this.handlePluginSubmit}
|
onSubmit={this.handlePluginSubmit}
|
||||||
onAddAsset={onAddAsset}
|
onAddAsset={onAddAsset}
|
||||||
@ -357,6 +355,5 @@ RawEditor.propTypes = {
|
|||||||
getAsset: PropTypes.func.isRequired,
|
getAsset: PropTypes.func.isRequired,
|
||||||
onChange: PropTypes.func.isRequired,
|
onChange: PropTypes.func.isRequired,
|
||||||
onMode: PropTypes.func.isRequired,
|
onMode: PropTypes.func.isRequired,
|
||||||
rawMode: PropTypes.bool,
|
|
||||||
value: PropTypes.node,
|
value: PropTypes.node,
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user