Refactored adding editor tab to ensure callbacks have document data.
Added scrolling to the top of the outline when `showonefile` is set (#337).
Improved scroll positioning in the outline after tab changes (#337).