hide selection when editor is removed from DOM
use different offsets for strokes