makeEditable now accepts a transform function