Document editor integration.

Fixes #80