king
2024-07-05 73b2dc5000b03cd150d91e0f6f1d1e3ba82cc97f
src/components/editor/index.jsx
@@ -21,7 +21,7 @@
  state = {
    editorState: '',
    encryption: 'false',
    encryption: 'false'
  }
  UNSAFE_componentWillMount () {
@@ -51,6 +51,7 @@
      encryption
    })
  }
  shouldComponentUpdate (nextProps, nextState) {
    return !is(fromJS(this.props), fromJS(nextProps))
  }
@@ -213,10 +214,16 @@
  }
  render() {
    const { config } = this.props
    const { editorState } = this.state
    let style = null
    if (config && config.contHeidht) {
      style = {'--editor-height': config.contHeidht < 100 ? config.contHeidht + 'vh' : config.contHeidht + 'px'}
    }
    return (
      <div className="normal-braft-editor">
      <div className="normal-braft-editor" style={style}>
        <BraftEditor
          value={editorState}
          onChange={this.handleEditorChange}