Added scroll synching for editor views

Added two event bindings so that the scrolling between the editor and
the preview is always in sync.