cmb wrote:An alternative would be to use inputs for options which have a short value currently, and textareas for those with a long value:
Code: Select all
$omcf = isset($mcf[$key])
: (utf8_strlen($val) <= 50 ? 'string' : 'text');
It preserves the possibility to save config data by just hitting the return key while at the same time longer entries are nicely visible and editable. I mean, you get the best of both worlds.