Fix/579 scrolltop is not zero
@@ -114,9 +114,6 @@ export default class CodeMirrorEditor extends AbstractEditor {
componentDidMount() {
// ensure to be able to resolve 'this' to use 'codemirror.commands.save'
this.getCodeMirror().codeMirrorEditor = this;
-
- // initialize caret line
- this.setCaretLine(0);
}
componentWillReceiveProps(nextProps) {
@@ -32,11 +32,6 @@ export default class Editor extends AbstractEditor {
this.renderDropzoneOverlay = this.renderDropzoneOverlay.bind(this);
- componentDidMount() {
- }
getEditorSubstance() {
return this.props.isMobile
? this.refs.taEditor