Sha256: d04e8d8e58a76a011bbc3f44f83131aee14a13848f2f0c1ece9bab6f40f4fda0
Contents?: true
Size: 493 Bytes
Versions: 6
Compression:
Stored size: 493 Bytes
Contents
class TrixEditorInput < Formtastic::Inputs::StringInput def to_html input_wrapping do editor_tag_params = { input: input_html_options[:id], class: 'trix-content' } editor_tag = template.content_tag('trix-editor', '', editor_tag_params) hidden_field = builder.hidden_field(method, input_html_options) editor = template.content_tag('div', editor_tag + hidden_field, class: 'trix-editor-wrapper') label_html + editor end end end
Version data entries
6 entries across 6 versions & 4 rubygems