We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 97056ea + 7e1f878 commit 57053b9Copy full SHA for 57053b9
lib/bootstrap-wysihtml5-rails/simple_form/wysihtml5_input.rb
@@ -2,7 +2,7 @@ class Wysihtml5Input < SimpleForm::Inputs::TextInput
2
def input(wrapper_options)
3
idf = "#{lookup_model_names.join("_")}_#{reflection_or_attribute_name}"
4
script = template.content_tag(:script, type: 'text/javascript') do
5
- "$('textarea[id=#{idf}]').wysihtml5();".html_safe
+ "$('textarea[id=#{idf}]').wysihtml5(#{options[:wysihtml5].to_json});".html_safe
6
end
7
8
super + script
0 commit comments