page-fragments: fixing Editor#type method 2