frontend/src/shared/components/textEditors/Editor/index.js
Function render
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { editorState } = this.state;
return (
<div className={styles.root} onBlur={this.handleUpdate} >
Function constructor
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
constructor(props) {
super(props);
if (props.value) {
const blocks = convertFromRaw(JSON.parse(props.value));