API: add setEditRewriter to control presentation of edit widget contents (fixes #47)