My recurring pattern for these is to simply use textfield and write a custom JS widget for taking input and serialising it into lines is JSON. (Although, note that plone modal pattern has many issues here: it breaks widgets with buttons and prevents React-like frameworks from functioning by default by capturing their events.)