Skip to content

Commit 57053b9

Browse files
committed
Merge pull request Nerian#132 from skv-headless/simple-form-options
ability to throw params with simple form
2 parents 97056ea + 7e1f878 commit 57053b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/bootstrap-wysihtml5-rails/simple_form/wysihtml5_input.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ class Wysihtml5Input < SimpleForm::Inputs::TextInput
22
def input(wrapper_options)
33
idf = "#{lookup_model_names.join("_")}_#{reflection_or_attribute_name}"
44
script = template.content_tag(:script, type: 'text/javascript') do
5-
"$('textarea[id=#{idf}]').wysihtml5();".html_safe
5+
"$('textarea[id=#{idf}]').wysihtml5(#{options[:wysihtml5].to_json});".html_safe
66
end
77

88
super + script

0 commit comments

Comments
 (0)