import React, { Component, PropTypes } from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ControlPane from '../ControlPanel/ControlPane'; import PreviewPane from '../PreviewPane/PreviewPane'; import styles from './EntryEditor.css'; export default class EntryEditor extends Component { state = { scrollTop: 0, scrollHeight: 0, offsetHeight: 0, } handleControlPaneScroll = evt => { const { scrollTop, scrollHeight, offsetHeight } = evt.target; this.setState({ scrollTop, scrollHeight, offsetHeight, }); } render() { const { collection, entry, getMedia, onChange, onAddMedia, onRemoveMedia, onPersist } = this.props; const { scrollTop, scrollHeight, offsetHeight } = this.state; return (