Sha256: 18309430969d3df3d9130d013856aa75dc8301ff3d7ddc2fd5677f644c936b48
Contents?: true
Size: 539 Bytes
Versions: 5
Compression:
Stored size: 539 Bytes
Contents
# frozen_string_literal: true module Formtastic module Inputs class QuillEditorInput < Formtastic::Inputs::TextInput def to_html input_wrapping do label_html << template.content_tag(:div, input_html_options.merge(class: 'quill-editor')) do builder.hidden_field(input_name) << template.content_tag(:div, class: 'quill-editor-content') do object.send(method).try :html_safe end end end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems