Insert text to specified offset in editor. Fixes #472