editor: first take on text paste handling