only resize/reformat cell ace editor when in source mode

fixes #581