norcross / gravity-tooltips

Adds a custom field to each form element for tooltips
MIT License
74 stars 20 forks source link

Feature request - Text area instead of input #6

Closed jmrichardson closed 10 years ago

jmrichardson commented 10 years ago

Hi,

Thanks for the great plugin. I was hoping you could add an option to make the tooltip input be a textarea with multi line support. I modified your code to get it to work but will lose on update. Here is the hack:

in admin.php, line 148 echo '';

in front.php, line 113 $tooltip = nl2br(esc_attr( $field['customTooltip'] ));

Thanks, john

norcross commented 10 years ago

at this point, not likely. the goal of a tooltip is short bits of information, since people don't always even read them. larger text and line breaks would make the entire area overbearing at times.