Этот коммит содержится в:
Mattia Roccoberton
2020-09-08 18:14:14 +02:00
родитель 1f697fc9fb
Коммит 20d715f287
3 изменённых файлов: 83 добавлений и 81 удалений

Просмотреть файл

@@ -6,9 +6,9 @@ module Formtastic
def to_html
input_wrapping do
label_html <<
template.content_tag(:div, input_html_options.merge(class: 'quill-editor')) do
template.content_tag(:div, input_html_options.merge('data-aa-quill-editor': '1')) do
builder.hidden_field(input_name) <<
template.content_tag(:div, class: 'quill-editor-content') do
template.content_tag(:div, 'data-aa-quill-content': '1') do
object.send(method).try :html_safe
end
end