Refactor richtext fields to use a custom bootstrap_form input.
This allows us to use form_group_builder and get all the label and help text handling in line with other bootstrap_form inputs.
This commit is contained in:
parent
ed07e17ca2
commit
78bf2993e4
6 changed files with 50 additions and 31 deletions
2
config/initializers/bootstrap_form.rb
Normal file
2
config/initializers/bootstrap_form.rb
Normal file
|
@ -0,0 +1,2 @@
|
|||
# Include our custom RichtextField input method for `f.richtext_field` in forms
|
||||
BootstrapForm::FormBuilder.include BootstrapForm::Inputs::RichtextField
|
Loading…
Add table
Add a link
Reference in a new issue