Fix performance issue with react.

- Do not render the quill editor when not in edit mode.