Use calculated cols for admin textareas

This commit is contained in:
Alexander Meindl 2020-05-07 14:41:37 +02:00
parent 08b9e58825
commit 9c134bc3fc

View File

@ -51,7 +51,7 @@ module AdditionalsSettingsHelper
value = options.delete(:value).presence || @settings[name]
options[:class] = 'wiki-edit' unless options.key?(:class)
options[:rows] = 8 unless options.key?(:rows)
options[:rows] = addtionals_textarea_cols(value) unless options.key?(:rows)
safe_join [label_tag("settings[#{name}]", label_title),
text_area_tag("settings[#{name}]", value, options)]