Update EditorSession to the new document API.