Sha256: 0d7c03676978821f142afb6233694cb3aa6116e7231a112f50df7a71d7132f71
Contents?: true
Size: 564 Bytes
Versions: 1
Compression:
Stored size: 564 Bytes
Contents
module Trix module SimpleForm class TrixEditorInput < ::SimpleForm::Inputs::Base def input(_wrapper_options) trix_options = options.slice(:spellcheck, :toolbar, :tabindex) editor_options = { input: input_class, class: 'trix-content' }.merge(trix_options) editor_tag = template.content_tag('trix-editor', '', editor_options) hidden_field = @builder.hidden_field(attribute_name, input_html_options) template.content_tag('div', hidden_field + editor_tag, class: 'trix-editor-wrapper') end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
trix-rails-2.0.0 | lib/trix/simple_form/trix_editor_input.rb |